/* evelynlinweb.com · punch card palette and structure */

:root {
  --ink: #221b17;
  --cream: #f0e9df;
  --gray: #a49a8f;
  --blue: #85acbd;
  --line: #332a24;
  --line2: #453930;
  --panel: #2a221c;
  --body: #e6ddd2;
  --display: 'Inika', 'Times New Roman', serif;
  --text: 'Mozilla Text', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--text);
  font-size: 16.5px;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cream); }

::selection { background: var(--blue); color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 12px;
}
.skip:focus { top: 12px; color: var(--ink); }

.mark { color: var(--gray); flex: none; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--cream);
}
.wordmark:hover { color: var(--cream); }
.wm-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.wm-sub {
  font-size: 8px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gray);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--gray);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--ink);
  border: 1px solid var(--blue);
  padding: 14px 22px;
  font-family: var(--text);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
}
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.main-nav a.btn { color: var(--ink); border-bottom-color: var(--blue); padding: 12px 16px; }
.main-nav a.btn:hover { color: var(--ink); background: var(--cream); border-color: var(--cream); }

.mark-head { position: absolute; right: 32px; bottom: -9px; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 0 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 362px 40px minmax(0, 1fr);
  grid-template-areas: "photo gap copy" "photo gap ledger";
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-photo {
  grid-area: photo;
  width: 362px;
  margin: 0;
  margin-left: calc(-1 * max(0px, (100vw - 1120px) / 2) - 24px);
}
.hero-photo img { width: 362px; height: auto; }
.hero-photo figcaption {
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gray);
}
.hero-copy { grid-area: copy; padding-top: 96px; max-width: 584px; }
.kick {
  margin: 0 0 28px;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gray);
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hl {
  position: relative;
  display: block;
  border-top: 1px solid rgba(240, 233, 223, .26);
  padding-top: 12px;
  line-height: .98;
}
.hl + .hl { margin-top: 6px; }
.mark-hero { position: absolute; left: 100%; top: 18px; margin-left: 20px; }
.hero-copy .lead {
  margin: 28px 0 0;
  font-size: 16.5px;
  line-height: 1.72;
  max-width: 30ch;
}
.acc { color: var(--blue); font-weight: 400; }
.hero-copy .btn { margin-top: 24px; }
.ledger {
  grid-area: ledger;
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  max-width: 584px;
}
.ledger li {
  border-top: 1px solid var(--line2);
  padding: 9px 0;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ----------------------------------------------------------------- bands */
.band { padding: 72px 0 0; }
.band-last { padding-bottom: 8px; }
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.sec-num {
  font-family: var(--display);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: .12em;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: .01em;
}

/* -------------------------------------------------------------- partners */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  max-width: 1080px;
}
.prow {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  height: 92px;
  border-top: 1px solid var(--line2);
  padding-top: 18px;
  color: var(--cream);
}
.prow:hover { color: var(--cream); }
.pnum { font-size: 8px; letter-spacing: .2em; color: var(--gray); padding-top: 4px; }
.pnum.acc { color: var(--blue); }
.pname { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; }
.prow:hover .pname { color: var(--blue); }
.plogo {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--cream);
  padding: 4px;
  line-height: 0;
}
.plogo img { width: 96px; height: 58px; object-fit: contain; }

/* --------------------------------------------------------------- profile */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 28px;
  max-width: 1000px;
}
.pf { position: relative; padding-left: 14px; }
.pf::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 3px;
  height: 40px;
  background: var(--line2);
}
.pf-k {
  display: block;
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}
.pf-v {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.4;
  margin-top: 4px;
}

/* ----------------------------------------------------------------- about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) 300px;
  justify-content: space-between;
  gap: 64px;
  align-items: start;
}
.about-copy { padding-top: 20px; }
.about-copy p { margin: 0 0 18px; max-width: 52ch; color: var(--body); }
.about-photo { position: relative; margin: 0; }
.about-photo img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  object-position: 50% 12%;
}
.mark-about { position: absolute; top: -16px; right: -16px; }
.quote {
  position: relative;
  margin: 32px 0 0;
  padding: 24px;
  border: 1px solid var(--line2);
  max-width: 620px;
}
.quote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--cream);
}
.quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--gray);
}
.mark-quote { position: absolute; left: -16px; top: -16px; }
.ab-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.62;
  color: var(--gray);
  max-width: 620px;
}

/* -------------------------------------------------------------- timeline */
.tl-wrap { max-width: 1000px; position: relative; }
.mark-tl { margin-bottom: 18px; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  margin: 0 0 24px;
}
.tl .when {
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
  letter-spacing: .03em;
}
.tl .what { font-size: 13px; line-height: 1.68; color: var(--body); }
.acc-year .when { color: var(--blue); }

/* --------------------------------------------------------------- gallery */
.gal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.gal figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line2);
  line-height: 0;
}
.gal figure::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -7px;
  width: 1px;
  height: 5px;
  background: var(--gray);
}
.gal img { width: auto; max-width: 100%; height: auto; max-height: 380px; }
.g1 img { width: 100%; max-width: 520px; max-height: none; }
.gal-r {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 24px;
  align-items: start;
  justify-content: space-between;
}
.gal-r figure { justify-self: start; }
.gal-r figure:nth-child(even) { justify-self: end; }
.gal-r figure:nth-child(n+3) { margin-top: 24px; }

/* ---------------------------------------------------------------- social */
.social { max-width: 820px; border-top: 1px solid var(--line2); }
.srow {
  display: grid;
  grid-template-columns: 150px 420px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  color: var(--cream);
}
.srow:hover { color: var(--cream); }
.srow .sp { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.srow .sh { font-size: 13px; }
.srow .ss { font-size: 11px; color: var(--gray); text-align: right; }
a.srow:hover .sh { color: var(--blue); }
a.srow:hover .ss { color: var(--gray); }
.srow-hist {
  border-bottom: 0;
  min-height: 44px;
  padding-top: 14px;
  color: var(--gray);
}
.srow-hist .sp { display: flex; align-items: center; gap: 8px; }
.srow-hist .sh { font-size: 13px; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--line2); }
.social-note { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: var(--gray); max-width: 820px; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 96px; }
.foot-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 8px;
  letter-spacing: .24em;
  color: var(--gray);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr auto;
  gap: 44px;
  align-items: start;
  border-top: 1px solid var(--line2);
  padding-top: 28px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.brand-name { font-family: var(--display); font-size: 16px; }
.brand-line { font-size: 12px; color: var(--gray); }
.language-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
}
.language-nav a { color: var(--gray); }
.language-nav a:hover { color: var(--cream); }
.language-nav a[aria-current="page"] { color: var(--cream); }
.lsep { color: var(--line2); }
.footer-legal { margin: 0; font-size: 12px; color: var(--gray); text-align: right; }
.foot-notes { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.foot-notes p { margin: 0 0 4px; font-size: 11px; line-height: 1.65; color: var(--gray); max-width: 96ch; }

/* -------------------------------------------------------------- subpages */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: .005em;
  max-width: 22ch;
}
.page-head .lead {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 58ch;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 72px;
  align-items: start;
  padding: 48px 0 0;
}
.page-grid-wide { grid-template-columns: minmax(0, 1fr); }
.prose p { margin: 0 0 18px; max-width: 66ch; color: var(--body); }
.prose h2 {
  margin: 38px 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.35;
}
.prose h2:first-child { margin-top: 0; }
.aside-photo { margin: 0 0 24px; border: 1px solid var(--line2); line-height: 0; }
.facts { border-top: 1px solid var(--line2); }
.fact { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fact-k {
  display: block;
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
}
.fact-v { display: block; font-size: 14px; line-height: 1.55; margin-top: 2px; }
.dist { columns: 2; column-gap: 48px; list-style: none; margin: 0 0 16px; padding: 0; }
.dist li {
  break-inside: avoid;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
}
.nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line2);
  padding-top: 18px;
  margin: 4px 0 18px;
}
.num-v { display: block; font-family: var(--display); font-size: 34px; line-height: 1.1; }
.num-k { display: block; font-size: 11px; color: var(--gray); margin-top: 4px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line2);
  padding-top: 20px;
  margin-bottom: 8px;
}
.stat-v { display: block; font-family: var(--display); font-size: 44px; line-height: 1; }
.stat-k {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.titles { list-style: none; margin: 0 0 8px; padding: 0; max-width: 620px; }
.titles li { border-top: 1px solid var(--line); padding: 10px 0; font-size: 15px; }
.qa-list { max-width: 820px; }
.qa { border-top: 1px solid var(--line2); padding: 26px 0; }
.qa h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.4; }
.qa p { margin: 0; max-width: 70ch; color: var(--body); }

/* ------------------------------------------------------------------ 404 */
.e404 { padding: 120px 0 140px; }
.e404 .mark { margin-bottom: 28px; }
.e404 .kick { margin-bottom: 18px; }
.e404 h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.05;
}
.e404 p { margin: 18px 0 28px; max-width: 46ch; color: var(--gray); }

/* -------------------------------------------------------------- breaks */
@media (max-width: 1120px) {
  .mark-hero { display: none; }
}

@media (max-width: 1024px) {
  .hero-title { font-size: 64px; }
  .hero-copy { padding-top: 72px; }
  .mark-hero { display: none; }
  .partner-grid { grid-template-columns: 1fr; max-width: 560px; }
  .profile-grid { column-gap: 40px; max-width: 640px; }
  .page-head h1 { font-size: 50px; }
  .page-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "photo" "ledger";
  }
  .hero-photo { margin-left: -24px; margin-top: 40px; width: auto; max-width: 362px; }
  .hero-copy { padding-top: 48px; }
  .ledger { margin-top: 32px; }
  .mark-hero { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-photo { order: -1; }
  .about-copy { padding-top: 0; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside { display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: 32px; align-items: start; }
  .aside-photo { margin: 0; }
  .stats, .nums { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-in { min-height: 0; padding-top: 18px; padding-bottom: 16px; gap: 14px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 10px; letter-spacing: .1em; }
  .main-nav a.btn { padding: 10px 14px; }
  .mark-head { right: 20px; }
  .hero-title { font-size: 46px; }
  .hero-copy .lead { max-width: 34ch; }
  .band { padding-top: 56px; }
  .sec-head { gap: 12px; }
  .sec-head h2 { font-size: 22px; }
  .profile-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .gal { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gal-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 14px; }
  .gal img { max-height: none; }
  .gal-r figure:nth-child(even) { justify-self: stretch; }
  .gal-r figure:nth-child(n+3) { margin-top: 16px; }
  .srow { grid-template-columns: 108px minmax(0, 1fr); }
  .srow .ss { grid-column: 2; text-align: left; margin-top: -8px; }
  .srow-hist .ss { margin-top: 0; }
  .tl li { grid-template-columns: 52px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-legal { text-align: left; }
  .foot-label { justify-content: flex-start; }
  .page-head { padding: 48px 0 32px; }
  .page-head h1 { font-size: 38px; }
  .page-head .lead { font-size: 16px; }
  .e404 { padding: 80px 0 100px; }
  .e404 h1 { font-size: 40px; }
  .aside { grid-template-columns: minmax(0, 1fr); }
  .aside-photo { width: 282px; }
  .about-photo img { width: 100%; max-width: 300px; height: auto; }
  .quote { padding: 20px; }
}

/* partner logo plate: guarantee legibility of supplied marks on any ground */
a img[src*="/assets/partners/"] {
  background: #f4efe6;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  filter: none;
  opacity: 1;
}
