/* majapolang.com
   Ink-on-paper palette: the subject's materials are letters, forms and official
   documents, so the page is built from document surfaces — deep ink teal for
   emphasis, a cool paper white beneath, and a single accent family throughout.
   Every section is labelled twice: once in the page's language, once in the
   other. That bilingual pairing is the whole product, so it does the signposting. */

:root {
  color-scheme: light dark;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Type */
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Helvetica Neue', Arial, sans-serif;

  --measure: 62ch;
  --radius: 14px;
  --radius-sm: 10px;

  /* Colour */
  --paper: #f5f7f8;
  --surface: #ffffff;
  --ink: #142033;
  --ink-2: #46536a;
  --rule: #dbe1e7;
  --teal: #0e5a55;
  --teal-deep: #0a2f2d;
  --teal-tint: #e2efec;
  --on-deep: #eef6f4;
  --on-deep-2: #b3ccc7;
  --focus: #0e5a55;
  --focus-deep: #7fd9cf;
  --shadow: 0 1px 2px rgb(20 32 51 / 6%), 0 8px 24px -12px rgb(20 32 51 / 18%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101820;
    --surface: #17212b;
    --ink: #e8eef2;
    --ink-2: #a9b8c4;
    --rule: #2a3846;
    --teal: #5fc4b8;
    --teal-tint: #16302e;
    --focus: #7fd9cf;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img,
iframe {
  max-width: 100%;
}

/* Typography ------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
}

h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.625rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--s-4);
  max-width: var(--measure);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 650;
  color: var(--ink);
}

/* The bilingual eyebrow: the same label, in the language the page is not
   written in. It is the signature device and the section signpost. */
.eyebrow {
  margin: 0 0 var(--s-3);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::after {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  margin-left: 0.9rem;
  vertical-align: 0.25em;
  background-color: currentColor;
  opacity: 0.45;
}

/* Focus and skip link ---------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  /* Fixed rather than absolute so it stays reachable when focus lands on it
     part-way down the page. */
  position: fixed;
  left: var(--s-4);
  top: var(--s-2);
  z-index: 10;
  padding: var(--s-3) var(--s-4);
  background-color: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transform: translateY(-200%);
}

.skip:focus {
  transform: translateY(0);
}

/* Shell ------------------------------------------------------------------ */

.shell {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(var(--s-7), 7vw, var(--s-9));
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: var(--s-6);
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
  padding-block: var(--s-2);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--teal);
}

/* Language switch: a segmented control, because the choice is binary and the
   current state has to be obvious at a glance. */
.lang {
  display: flex;
  gap: var(--s-1);
  padding: var(--s-1);
  background-color: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 999px;
}

.lang a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang a:hover {
  color: var(--ink);
  background-color: color-mix(in srgb, var(--ink) 6%, transparent);
}

.lang a[aria-current='page'] {
  background-color: var(--teal);
  color: #ffffff;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .lang a[aria-current='page'] {
    color: var(--teal-deep);
  }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  background-color: var(--teal-deep);
  background-image: radial-gradient(
    120% 90% at 15% 0%,
    #10403c 0%,
    var(--teal-deep) 55%,
    #082624 100%
  );
  color: var(--on-deep);
  padding-block: clamp(var(--s-7), 8vw, var(--s-9));
}

.hero .eyebrow {
  color: var(--on-deep-2);
}

.hero h1 {
  color: #ffffff;
}

.hero :focus-visible {
  outline-color: var(--focus-deep);
}

.hero-grid {
  display: grid;
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: center;
}

.hero-role {
  margin: var(--s-3) 0 var(--s-5);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-style: italic;
  color: var(--on-deep-2);
}

.hero-lede {
  color: var(--on-deep);
  opacity: 0.92;
}

.hero-note {
  margin-top: var(--s-4);
  font-size: 0.9375rem;
  color: var(--on-deep-2);
}

.hero-photo {
  margin: 0;
  justify-self: center;
  max-width: 320px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  outline: 1px solid rgb(255 255 255 / 18%);
  outline-offset: -1px;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 55%);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  }

  .hero-photo {
    justify-self: end;
  }
}

/* Buttons ---------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background-color: #ffffff;
  color: var(--teal-deep);
}

.btn-primary:hover {
  background-color: var(--teal-tint);
}

.btn-ghost {
  border-color: rgb(255 255 255 / 45%);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: #ffffff;
  background-color: rgb(255 255 255 / 10%);
}

/* Lists ------------------------------------------------------------------ */

.ticks {
  display: grid;
  gap: var(--s-2) var(--s-5);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background-color: var(--teal-tint);
  box-shadow: inset 0 0 0 2px var(--teal);
}

@media (min-width: 40rem) {
  /* Tracks size to their own content (capped so a long item still wraps)
     and pack to the left, so the two columns sit side by side with a fixed
     gap instead of being pushed apart by the container width. */
  .ticks-2 {
    grid-template-columns: repeat(2, fit-content(20rem));
    justify-content: start;
    column-gap: var(--s-7);
  }
}

/* Pricing ---------------------------------------------------------------- */

.cards {
  display: grid;
  gap: var(--s-4);
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--teal);
}

.card .price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0;
}

.card .service {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Side by side, reserve the qualifier line on every card so the service
     descriptions start on the same baseline across the row. Stacked, that
     reserved space would just be a gap, so it only applies here. */
  .card .price {
    min-height: 3.3rem;
  }
}

/* Callout ---------------------------------------------------------------- */

.callout {
  max-width: var(--measure);
  margin: 0 0 var(--s-5);
  padding: var(--s-4) var(--s-5);
  background-color: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 1rem;
}

/* Map -------------------------------------------------------------------- */

.map {
  margin: 0;
  max-width: 46rem;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background-color: var(--surface);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map figcaption {
  margin-top: var(--s-3);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Ordering steps --------------------------------------------------------- */

.panels {
  display: grid;
  gap: var(--s-4);
}

.panel {
  padding: var(--s-5);
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.panel h3 {
  margin-bottom: var(--s-4);
}

/* Numbered because ordering genuinely is a sequence — the steps happen in
   this order and the reader needs to know which comes first. */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 2.75rem;
  font-size: 1rem;
  color: var(--ink-2);
}

.steps li + li {
  margin-top: var(--s-3);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background-color: var(--teal-tint);
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.panels + p {
  margin-top: var(--s-5);
}

@media (min-width: 48rem) {
  .panels-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact ---------------------------------------------------------------- */

.contact {
  background-color: var(--teal-deep);
  background-image: radial-gradient(
    100% 120% at 85% 100%,
    #10403c 0%,
    var(--teal-deep) 60%,
    #082624 100%
  );
  color: var(--on-deep);
  border-top: 0;
}

.contact h2 {
  color: #ffffff;
}

.contact .eyebrow {
  color: var(--on-deep-2);
}

.contact p {
  color: var(--on-deep);
}

.contact :focus-visible {
  outline-color: var(--focus-deep);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding-block: var(--s-6);
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* Not found -------------------------------------------------------------- */

.notfound {
  display: grid;
  align-content: center;
  min-height: 60vh;
  padding-block: var(--s-8);
}

.notfound h1 {
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--teal);
  line-height: 1;
}

.notfound p {
  margin-top: var(--s-4);
}

/* Motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
