/*
  codycomposer.com
  Static replica of the Squarespace site: same layout, colors, and type scale.
  The original used two Adobe fonts (Orpheus Pro, Adobe Garamond Pro) that come with Squarespace.
  Cormorant and EB Garamond are free, open-licensed (SIL OFL) look-alikes, hosted from /fonts.
*/

@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 104%;
  src: url("fonts/cormorant-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; size-adjust: 104%;
  src: url("fonts/cormorant-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; size-adjust: 104%;
  src: url("fonts/cormorant-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 700; font-display: swap; size-adjust: 104%;
  src: url("fonts/cormorant-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }

:root {
  --bg: #eaeaee;
  --ink: #000;
  --blue: #336dac;
  --col-gap: 11px;

  /* Phone sizes (under 768px) */
  --m: 6vw;
  --p: calc(17.596px + 0.094vw);
  --h3: calc(25.58px + 0.5633vw);
  --h2: calc(30.364px + 0.8466vw);
  --title: calc(23.98px + 0.47vw);
  --g: calc(23.6px + 1vw);
  --row-gap: 56px;
  --item-gap: 20px;
  --photo-h: 444px;
  --foot-top: calc(204px + (100vw - 375px) * 0.1244);
  --foot-bottom: calc(226px + (100vw - 375px) * 0.1156);
}

@media (min-width: 768px) {
  :root {
    --m: 4vw;
    --p: calc(16px + 0.0024 * min(100vw, 1800px));
    --h3: calc(16px + 0.0144 * min(100vw, 1800px));
    --h2: calc(16px + 0.0216 * min(100vw, 1800px));
    --title: calc(16px + 0.012 * min(100vw, 1800px));
    --g: 34px;
    --row-gap: calc(37px + (100vw - 768px) * 0.0195);
    --item-gap: 37px;
    --photo-h: calc(681px + (100vw - 768px) * 0.082);
    --foot-top: calc(278px - (100vw - 768px) * 0.379);
    --foot-bottom: calc(294px - (100vw - 768px) * 0.32);
  }
}

@media (min-width: 1024px) {
  :root {
    --g: 3.3vw;
    --row-gap: 4.1vw;
    --item-gap: 4.3vw;
    --photo-h: calc(702px + (100vw - 1024px) * 0.279);
    --foot-top: calc(181px + (100vw - 1024px) * 0.0529);
    --foot-bottom: calc(212px + (100vw - 1024px) * 0.1178);
  }
}

@media (min-width: 1440px) {
  :root {
    --row-gap: calc(59px + (min(100vw, 1920px) - 1440px) * 0.052);
    --item-gap: calc(69px + (min(100vw, 1920px) - 1440px) * 0.0646);
    --photo-h: calc(818px + (min(100vw, 1920px) - 1440px) * 0.417);
    --foot-top: calc(203px + (min(100vw, 1920px) - 1440px) * 0.0771);
    --foot-bottom: calc(261px + (min(100vw, 1920px) - 1440px) * 0.1417);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: var(--p);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
strong { font-weight: 700; }

/* Skip link: hidden until focused */
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: #000; color: #fff; padding: 14px 24px;
  font-weight: 500; letter-spacing: 0.04em; text-decoration: none;
}
.skip:focus { top: 12px; }

a:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
.footer a:focus-visible { outline-color: #fff; }

/* Header */
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6vw var(--m);
}
.site-title {
  font-size: var(--title); line-height: 1.4; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.header-icons { display: flex; gap: 18px; flex: none; }
.header-icons a { display: block; width: 20px; height: 20px; }
.header-icons svg, .icon svg { display: block; width: 100%; height: 100%; fill: currentColor; }

@media (min-width: 801px) {
  .header { padding: 3.05vw var(--m); }
}

/* Intro: photo left, bio right (24 column grid) */
.intro, .row {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-left: var(--m); padding-right: var(--m);
}
.intro { padding-top: var(--g); padding-bottom: var(--g); align-items: start; }

.photo {
  grid-column: 1 / -1;
  margin: 0; height: var(--photo-h); overflow: hidden; background: #dcdce1;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

.bio { grid-column: 1 / -1; margin-top: 11px; font-size: var(--h2); line-height: 1.3; }

@media (min-width: 768px) {
  .photo { grid-column: 1 / 13; }
  .bio { grid-column: 13 / 25; margin-top: 0; }
}

/* Rows: small italic label on the left, text on the right */
.rows { padding-top: var(--g); padding-bottom: var(--g); }
.row { row-gap: 6px; }
.row + .row { margin-top: var(--row-gap); }
.label { grid-column: 1 / -1; font-family: "EB Garamond", Garamond, Georgia, serif; font-style: italic; line-height: 1.6; }
.label em { font-style: italic; }
.copy { grid-column: 1 / -1; }
.copy h3 { font-size: var(--h3); line-height: 1.3328; letter-spacing: -0.004em; word-spacing: -0.05em; }
.copy h3 + h3 { margin-top: 32px; }

@media (min-width: 768px) {
  .label { grid-column: 4 / 8; }
  .copy { grid-column: 8 / 22; }
}

.copy a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.icons { display: flex; gap: 12px; margin-top: var(--item-gap); }
.icon {
  display: block; width: 48px; height: 48px; padding: 3px;
  border: 2px solid var(--ink); border-radius: 15%; color: var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; margin-top: var(--item-gap); padding: 0 32px;
  background: #000; color: #fff; text-decoration: none; border-radius: 0;
  font-size: 16px; font-weight: 500; letter-spacing: 0.04em; line-height: 1;
}
.copy a.btn { text-decoration: none; }
.btn:hover { background: #222; }

/* Footer */
.footer {
  background: var(--blue); color: #fff;
  padding: var(--foot-top) var(--m) var(--foot-bottom);
}
.footer-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--col-gap); }
.footer-copy { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-copy { grid-column: 8 / 22; } }
.footer h3 { font-size: var(--h3); line-height: 1.3328; letter-spacing: -0.004em; word-spacing: -0.05em; }
.footer h3 + h3 { margin-top: 32px; }
.footer a { text-decoration: none; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s; }
}
