/* paulrhys.com — site styles. Palette and type carried over from the 2026 Squarespace redesign. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink: #131313;
  --paper: #f7f5f1;
  --card: #fffdf9;
  --line: #d9d5cc;
  --muted: #6b675f;
  --body: #33322e;
  --accent: #8a3324;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding-inline: 24px; }
.wrap.wide { max-width: 1000px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 18px; max-width: 1000px; }
.brand { text-decoration: none; display: grid; gap: 1px; }
.brand b { font-weight: 500; font-size: 21px; letter-spacing: .01em; }
.brand span { font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.site-nav a { text-decoration: none; color: var(--muted); padding-block: 4px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a.book { color: var(--paper); background: var(--ink); padding: 6px 12px; }
.site-nav a.book:hover { opacity: .8; }

/* Type */
.eyebrow { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
h1 { font-weight: 500; font-size: 34px; line-height: 1.18; margin: 0 0 20px; text-wrap: balance; }
h1 .sub { display: block; color: var(--muted); font-size: 24px; margin-top: 8px; }
h2 { font-weight: 500; font-size: 25px; line-height: 1.25; margin: 0 0 14px; text-wrap: balance; }
h3 { font-weight: 600; font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--body); max-width: 40em; }
.meta { font-family: var(--sans); font-size: 13.5px; color: var(--muted); letter-spacing: .01em; }
.label { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; font-weight: 400; }

/* Sections */
main section { padding-block: 52px; border-bottom: 1px solid var(--line); }
main section:last-child { border-bottom: none; }
.hero { padding-block: 64px 44px; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn { font-family: var(--sans); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 12px 22px; border: 1px solid var(--ink); color: var(--ink); display: inline-block; background: transparent; cursor: pointer; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:hover { opacity: .78; }

/* Video (click-to-play) */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; border: 1px solid var(--line); overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.video button span { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(19,19,19,.78); padding: 12px 20px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 10px; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
.service a { text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.service p { font-size: 15.5px; color: var(--body); margin: 0 0 10px; }
.more { font-family: var(--sans); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Lists */
ul.ruled { list-style: none; margin: 0; padding: 0; }
ul.ruled li { padding: 12px 0; border-top: 1px solid var(--line); }
ul.ruled li:first-child { border-top: none; }
.prose ul { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

/* Clients as text */
.clients { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 0; list-style: none; }

/* Logo row */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; margin: 0; padding: 0; list-style: none; }
.logos img { width: auto; filter: grayscale(100%) contrast(1.05); opacity: .72; mix-blend-mode: multiply; }
.logos img:hover { opacity: 1; }

/* Quotes */
blockquote { margin: 0 0 28px; font-size: 18px; font-style: italic; max-width: 40em; }
blockquote footer { font-family: var(--sans); font-size: 12.5px; font-style: normal; letter-spacing: .03em; color: var(--muted); margin-top: 8px; }

/* Photo */
.photo img { width: 100%; filter: grayscale(25%); border: 1px solid var(--line); }

/* Work cards */
.card { display: block; color: inherit; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(15%); border: 1px solid var(--line); }
.card:hover img { opacity: .84; }
.card h3 { margin: 14px 0 4px; font-size: 16.5px; }
.card .who { font-family: var(--sans); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.card .role { font-family: var(--sans); font-size: 11.5px; letter-spacing: .03em; color: var(--accent); margin: 0 0 6px; }
.card p { font-size: 15px; color: var(--body); margin: 0; }

/* Credits table */
.table-scroll { overflow-x: auto; }
table.credits { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.credits th { text-align: left; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
table.credits td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.credits td:last-child, table.credits th:last-child { padding-right: 0; }
table.credits .r { font-family: var(--sans); font-size: 13px; color: var(--muted); white-space: nowrap; }
.yr { font-variant-numeric: tabular-nums; font-family: var(--sans); font-size: 13.5px; color: var(--muted); white-space: nowrap; }

details.archive { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
details.archive summary { cursor: pointer; font-family: var(--sans); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
details.archive[open] summary { margin-bottom: 18px; }

/* Facts panel on service pages */
dl.facts { display: grid; grid-template-columns: 11em 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
dl.facts dt, dl.facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.facts dt { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 16px; padding-top: 15px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--body); max-width: 40em; }

/* Team */
.team img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; width: 100%; filter: grayscale(20%); border: 1px solid var(--line); margin-bottom: 14px; }
.team .role { font-family: var(--sans); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.team p { font-size: 15.5px; color: var(--body); margin: 0; }

/* Contact */
.contact-lines { font-size: 20px; line-height: 1.7; }
.contact-lines a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.contact-lines a:hover { text-decoration-color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.site-footer .wrap { max-width: 1000px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  h1 { font-size: 28px; }
  h1 .sub { font-size: 20px; }
  .hero { padding-block: 44px 32px; }
  main section { padding-block: 40px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
