:root {
  --text: #000;
  --bg: #fff;
  --heading: #474747;
  --hover: #f6b105;
  --muted: #6b6b6b;
  --border: #c9c9c9;
  --content: 650px;
  --wide: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 1.5rem 1.25rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.227), 1.125rem);
  line-height: 1.6;
}

a { color: var(--text); text-decoration: underline; }
a:hover { color: var(--hover); text-decoration: none; }
a:focus-visible { text-decoration: underline dashed; outline: none; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 400; line-height: 1.4; }
h1 { font-size: clamp(2rem, 2rem + ((1vw - 0.2rem) * 2.9), 3.6rem); line-height: 1.2; margin: 0 0 -0.25em; }
h2 { font-size: clamp(1.4rem, 1.4rem + ((1vw - 0.2rem) * 0.6), 1.75rem); }
hr { border: 0; border-top: 2px solid var(--text); margin: 0 0 2em; }

.wide { max-width: var(--wide); margin-inline: auto; }
.content { max-width: var(--content); margin-inline: auto; }
main { margin-top: 2.5rem; }
main .content > .grid { max-width: none; }
main:has(.grid) .content { max-width: var(--wide); }

/* header + footer */
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer { margin-top: 4rem; }
.site-title { margin: 0; font-size: 1.125rem; font-weight: 700; }
.site-title a { text-decoration: none; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current="page"] { text-decoration: underline; }
.site-header nav a:hover { text-decoration: underline; }

figure { margin: 1.5em 0; }

/* home page logo row */
.home-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: center; margin: 2rem 0; }
.home-logos img { display: block; margin-inline: auto; }
@media (max-width: 600px) { .home-logos { grid-template-columns: repeat(2, 1fr); } }

/* logo design index */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; margin-top: 2rem; }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }
.card h2 { font-size: 1.25rem; margin: 0.75rem 0 0.25rem; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0.25rem 0 0.75rem; }
.card-img { display: flex; align-items: center; justify-content: center; height: 260px; border: 1px solid #eee; padding: 1rem; }
.card-img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.button { display: inline-block; padding: 0.4em 1.1em; background: var(--text); color: var(--bg); text-decoration: none; }
.button:hover { background: var(--hover); color: var(--text); }

.back { margin-top: 3rem; }

/* contact form */
.contact-form label { display: block; font-weight: 700; margin: 1.25rem 0 0.25rem; }
.contact-form .hint { font-weight: 400; color: var(--muted); font-size: 0.85em; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; font: inherit; padding: 0.5em 0.6em; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--hover); outline-offset: 0; }
.contact-form textarea { min-height: 11em; resize: vertical; }
.contact-form .name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .contact-form .name-row { grid-template-columns: 1fr; } }
.contact-form button { margin-top: 1.5rem; font: inherit; border: 0; cursor: pointer; padding: 0.5em 1.5em; background: var(--text); color: var(--bg); }
.contact-form button:hover { background: var(--hover); color: var(--text); }
/* honeypot: off-screen rather than display:none, since some bots skip display:none fields */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 0.75rem 1rem; margin: 1.5rem 0; border-left: 4px solid var(--text); background: #f6f6f6; }
.notice.error { border-color: #b32d2e; }
.notice ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.contact-photo { margin-top: 2.5rem; }
