/* links.kofiamoa.com, version 2.
   One photograph, a name, five links, a row of icons. Nothing else.
   GFS Didot for the name and the featured title, Helvetica Neue for everything tappable.
   Widths are percentages of the screen, never fixed pixel or ch caps. */

@font-face { font-family: "GFS Didot"; src: url("fonts/GFSDidot-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue Web"; src: url("fonts/HelveticaNeue-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue Web"; src: url("fonts/HelveticaNeue-Roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #fdfdfa;
  --ink: #212121;
  --accent: #b2a697;
  --grey: #6b6b6b;
  --rule: rgba(33, 33, 33, .16);
  --display: "GFS Didot", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Helvetica Neue Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 1rem; line-height: 1.4; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -200vw; top: 0; z-index: 5; background: var(--ink); color: #fff; padding: .8rem 1.1rem; }
.skip:focus { left: 0; }

.arrow { display: inline-block; transition: transform .35s ease; }
a:hover .arrow { transform: translateX(.3em); }

/* ---------- Phone first: photograph, then everything in one calm column ---------- */
.photo { background: #cfcfcc; overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; }
/* how each photograph is cropped lives in heroes.css, written by build.py */

.col { padding: 1.35rem 7% 1.5rem; }

.brand { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; }
.brand__mark { width: 2.75rem; height: 2.75rem; grid-row: span 2; }
.brand__name { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.15; align-self: end; }
.brand__role { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); align-self: start; margin-top: .2rem; }
.brand__name:last-child { grid-row: span 2; align-self: center; }

.stack { display: block; margin-top: 1.6rem; }

/* the one small label style: above the featured title and above each group */
.label { display: block; font-size: .7rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }

/* the weekly slot: a label, a title and one button, the whole block is the link */
.featured { display: block; }
.featured__title { display: block; margin-top: .45rem; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
.featured .btn { margin-top: .9rem; }

/* two button styles and no others */
.btn { display: flex; align-items: center; justify-content: center; gap: .6em; width: 100%; min-height: 3.25rem; padding: .9rem 1.2rem; font-size: .78rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; text-align: center; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.btn--quiet { border: 1px solid var(--ink); }
.featured:hover .btn--quiet { background: rgba(33, 33, 33, .05); }
.btn--primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); min-height: 3.6rem; margin-top: .7rem; font-size: .82rem; }
.btn--primary:hover { background: #3a342f; border-color: #3a342f; }

/* two small groups of plain rows */
.groups { margin-top: 1.7rem; display: grid; row-gap: 1.5rem; }
.links { margin-top: .15rem; }
.links li { border-bottom: 1px solid var(--rule); }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .7rem 0; font-size: 1.05rem; }
.links .arrow { color: var(--grey); }

.foot { margin-top: 1.5rem; }
.social { display: flex; flex-wrap: wrap; align-items: center; column-gap: .15rem; margin-left: -.55rem; }
.social a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .55rem; color: var(--grey); transition: color .3s ease; }
.social a:hover { color: var(--ink); }
.social svg { width: 1.2rem; height: 1.2rem; flex: none; }
.social__note { font-size: .72rem; letter-spacing: .06em; }
.foot__legal { margin-top: .9rem; font-size: .75rem; color: var(--grey); }
.foot__legal a { display: inline-block; padding: .9rem .2rem; margin: -.9rem 0; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Tablet, held upright: same order, a wider photograph, a column that is not full bleed ---------- */
@media (min-width: 600px) {
  .col { padding: 2.5rem 16% 3rem; }
  .brand__mark { width: 3.5rem; height: 3.5rem; }
  .brand__name { font-size: 2rem; }
  .brand__role { font-size: .76rem; }
  .stack { margin-top: 2.4rem; }
  .featured__title { font-size: 2rem; }
  .featured .btn { margin-top: 1.2rem; }
  .btn { min-height: 3.6rem; font-size: .84rem; }
  .btn--primary { min-height: 4rem; margin-top: .9rem; font-size: .88rem; }
  .groups { margin-top: 2.2rem; grid-template-columns: 1fr 1fr; column-gap: 8%; align-items: start; }
  .links a { min-height: 3.4rem; font-size: 1.1rem; }
  .foot { margin-top: 2.2rem; }
}

/* ---------- Laptop: split screen. The photograph is half the width and the full height. ---------- */
@media (min-width: 900px) and (orientation: landscape) {
  .page { display: grid; grid-template-columns: 50% 50%; min-height: 100vh; }
  .photo { position: sticky; top: 0; height: 100vh; }
  .photo img { width: 100%; height: 100%; aspect-ratio: auto; }
  .col { display: flex; align-items: center; padding: 4vh 0; }
  .col__in { width: 64%; margin: 0 auto; }
  .brand { display: block; }
  .brand__mark { width: 3.6rem; height: 3.6rem; margin-left: -.3rem; }
  .brand__name { font-size: clamp(2rem, 2.9vw, 3rem); margin-top: 1rem; }
  .brand__role { font-size: .78rem; margin-top: .7rem; }
  .stack { margin-top: clamp(1.6rem, 5vh, 3.4rem); }
  .groups { margin-top: clamp(1.4rem, 4vh, 2.4rem); }
  .featured__title { font-size: clamp(1.5rem, 2vw, 2.1rem); }
  .btn { min-height: 3.5rem; font-size: .8rem; }
  .btn--primary { min-height: 3.9rem; font-size: .84rem; }
  .links a { min-height: 3.1rem; font-size: 1.02rem; }
  .foot { margin-top: clamp(1.2rem, 4vh, 2.6rem); }
}

/* ---------- Motion: one gentle fade, nothing else ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.photo img { animation: fade 1.1s ease both; }
.col__in { animation: fade .9s ease .15s both; }
@media (prefers-reduced-motion: reduce) {
  .photo img, .col__in { animation: none; }
  .arrow, .btn, .social a { transition: none; }
}

/* ---------- Privacy page ---------- */
.legal { padding: 2.5rem 7% 3rem; }
.legal__brand { display: inline-grid; grid-template-columns: auto auto; column-gap: .8rem; align-items: center; }
.legal__brand .brand__name { font-size: 1.2rem; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin-top: 2.2rem; }
.legal h2 { font-size: .76rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-top: 2rem; }
.legal p { margin-top: .8rem; font-size: 1.05rem; line-height: 1.6; }
.legal p a { text-decoration: underline; text-underline-offset: .2em; }
.legal .legal__fine { color: var(--grey); font-size: .95rem; }
.legal .legal__back { margin-top: 2.2rem; }
.legal .legal__back a { display: inline-block; padding: .8rem 0; }
@media (min-width: 600px) { .legal { padding: 4rem 12.5% 5rem; } }
