/* Willa Lane — site styles (matched to the original theme: Manrope, 645px content) */

:root {
  --text: #111111;
  --navy: #252740;        /* headings / accordion titles */
  --link: #0000ff;        /* plain blue, underlined */
  --rule: rgba(17,17,17,0.2);
  --content: 645px;       /* theme contentSize */
  --wide: 1100px;         /* header alignwide (capped a touch from 1340 for balance) */
  --pad: 40px;            /* theme global side padding */
  --gap: 19.2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17.5px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; border: 1px solid var(--rule); z-index: 10; }

/* Width containers */
.wrap { max-width: calc(var(--content) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.header-inner { max-width: calc(var(--wide) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* Header: logo + title on the left, nav pushed right */
.site-header { padding: 28px 0 10px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: auto; display: block; }
.site-title { margin: 0; font-size: 27px; font-weight: 700; line-height: 1.1; }
.site-title a, .brand .site-title { color: var(--text); text-decoration: none; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 4px 22px;
}
.site-nav a { color: var(--text); text-decoration: none; font-size: 17.5px; font-weight: 300; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Main content */
main { padding: 26px 0 10px; }
main h1 { font-size: 37px; font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; color: var(--text); }
main h3 { font-size: 1.15em; line-height: 1.3; }

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link); }

strong, b { font-weight: 700; }

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

p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin: 0.35em 0; }

/* Home: three images across the top, then the full-width art piece */
.img-row { display: flex; flex-wrap: nowrap; justify-content: center; gap: var(--gap); margin: 0.6em 0 1.6em; }
.img-row img { width: calc((100% - var(--gap) * 2) / 3); object-fit: cover; border-radius: 2px; display: block; }
.img-full { margin: 1.6em 0; }
.img-full img { width: 100%; display: block; border-radius: 2px; }

/* Media & Press: each item is image (left) + caption (right) */
.media-year { font-weight: 700; margin: 1.5em 0 0.7em; }
.media-item {
  display: flex; align-items: center; gap: 7%;
  margin: 0 0 1.4em;
}
.media-item .thumb { flex: 0 0 25%; max-width: 25%; }
.media-item .thumb img { width: 100%; display: block; border-radius: 2px; }
.media-item .caption { flex: 1 1 auto; margin: 0; }

/* CV button */
.button { display: inline-block; background: var(--navy); color: #fff !important; padding: 10px 22px; border-radius: 4px; text-decoration: none; font-weight: 400; }
.button:hover { opacity: 0.9; text-decoration: none; }

/* Inline PDF viewer (CV) */
.pdf-embed { margin: 1.4em 0; }
.pdf-embed iframe { width: 100%; height: 850px; border: 1px solid var(--rule); border-radius: 4px; background: #f6f6f6; }
@media (max-width: 680px) { .pdf-embed iframe { height: 70vh; } }

/* FAQ accordions — collapsed by default, like the original */
details.faq {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
details.faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  position: relative;
  color: var(--navy);
  font-size: 19px;
  font-weight: 900;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+";
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-weight: 400; font-size: 1.4em; color: var(--navy); line-height: 1;
}
details.faq[open] > summary::after { content: "\2013"; } /* – */
.faq-body { padding: 0 0 14px; }
.faq-body > *:first-child { margin-top: 0; }

/* Nested sub-accordions */
details.faq details.faq.sub { margin: 0.6em 0 0.2em 1.2em; border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule); }
details.faq details.faq.sub:first-of-type { margin-top: 1em; }
details.faq.sub > summary { font-size: 18px; padding: 12px 28px 12px 0; }

/* Tables (FAQ funding table) */
table { border-collapse: collapse; width: 100%; font-size: 0.8rem; margin: 1.2em 0; }
th, td { border: 1px solid var(--rule); padding: 7px 9px; text-align: left; vertical-align: top; }
th { background: #f6f6f6; }

/* Footer */
hr.sep { border: none; border-top: 1px solid var(--rule); margin: 2.2em 0 1em; }
.site-footer { font-size: 17.5px; color: var(--text); padding-bottom: 48px; text-align: left; }
.site-footer p { margin: 0.2em 0; }

@media (max-width: 680px) {
  :root { --pad: 22px; }
  body { font-size: 16.5px; }
  main h1 { font-size: 29px; }
  .img-row { flex-wrap: wrap; }
  .img-row img { width: calc((100% - var(--gap)) / 2); }
  .site-nav ul { justify-content: flex-start; gap: 4px 16px; }
}
