/* The one stylesheet. Colours are tokens; there is one theme, Sifan Noir's — near black, gold and
   off-white, Didot for headings and Avenir for text — the brand sheet of John's 2025 design for the
   company that became Konjo Group. Avenir is Apple's; elsewhere Montserrat stands in for it. */

/* The two fallback typefaces, served from here so no visitor's browser calls anyone else:
   GFS Didot (Greek Font Society, OFL) stands in for Didot, Montserrat (OFL) for Avenir, each
   the latin subset as Google Fonts cuts it. Apple devices use Didot and Avenir themselves. */
@font-face {
  font-family: "GFS Didot";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/gfs-didot-latin.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --page: #0a0a0a;          /* near black, the design's own */
  --panel: #2e2e2e;         /* the design's grey, for the footer and cards */
  --ink: #f5f5f0;           /* the design's off-white for reading */
  --quiet: #b9b6ad;         /* quieter text, the off-white dimmed */
  --gold: #c5a46d;          /* the design's gold: headings, links, rules */
  --gold-light: #d9c192;    /* a lighter gold for hover */
  --rule: rgba(197, 164, 109, 0.3);
  --serif: "Didot", "GFS Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

header,
main,
footer {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

/* The mark: a Didot K in a thin gold ring, as Sifan Noir's monogram sat. */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
}

.mark:hover {
  color: var(--ink);
  border-color: var(--ink);
}

main {
  flex: 1;
  width: 100%;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

footer {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 0.9375rem;
}

nav a {
  margin-right: 1.5rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

a {
  color: var(--gold);
  text-underline-offset: 0.2em;
  text-decoration-color: var(--rule);
}

a:hover {
  color: var(--gold-light);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: 2.75rem;
  text-transform: uppercase;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

p,
ul {
  margin: 0 0 1rem;
}

/* A line tucked under the name: smaller, quieter, letter-spaced like the nav, and close. */
h1 + .under {
  margin: -0.75rem 0 2.25rem;
  color: var(--quiet);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

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

.quiet {
  color: var(--quiet);
}

.icon {
  display: block;
  width: 7.5rem;
  margin-bottom: 1.5rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--rule);
}

/* The two store badges, at one width. */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0.75rem;
}

.badges a {
  display: block;
  width: 11.25rem;
}

.badges img {
  display: block;
  width: 100%;
}
