/* Arkan Group Holdings Sdn Bhd — plate */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F5F2;
  --ink: #1B2A4A;
  --ink-muted: #606A80;
  --rule: #B08D2E;
  --focus: #1B2A4A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html { background: var(--paper); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}

/* ---- Layout: full viewport, single left-aligned column ---- */

.plate {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 32px 0 clamp(64px, 12vw, 200px);
}

.identity { padding-top: 38vh; }

.register {
  margin-top: auto;
  padding-bottom: max(64px, 12vh);
}

/* ---- Identity group ---- */

.wordmark {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin: 0;
  margin-right: -0.42em; /* compensate trailing letterspace */
  color: var(--ink);
}

.statement {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 22em;
  margin: 1.75rem 0 0 0;
}

.contact { margin: 2.25rem 0 0 0; }

.contact-label {
  font-family: "Courier Prime", monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.contact-value { margin: 0.4rem 0 0 0; }

.email {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--ink);
  transition: text-decoration-color 120ms;
}

.email:hover { text-decoration-color: var(--rule); }

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

/* ---- 404 heading and return link ---- */

.notfound {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.notfound-body { margin: 1.75rem 0 0 0; }

.link {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--ink);
  transition: text-decoration-color 120ms;
}

.link:hover { text-decoration-color: var(--rule); }

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

/* ---- Register: statutory block set as a filed entry ---- */

.rule {
  border: 0;
  height: 1px;
  width: 280px;
  max-width: 100%;
  background: var(--rule);
  margin: 0 0 1.25rem 0;
}

.statutory {
  display: grid;
  grid-template-columns: 180px auto;
  align-items: baseline;
  row-gap: 0;
  line-height: 1.7;
  margin: 0;
}

.statutory dt {
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.statutory dd {
  font-family: "Courier Prime", monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}

.copyright {
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 1.75rem 0 0 0;
}

/* ---- Mobile, below 768px ---- */

@media (max-width: 767px) {
  .plate { padding: 0 32px; }

  .identity { padding-top: 14vh; }

  .wordmark {
    font-size: 24px;
    letter-spacing: 0.36em;
    margin-right: -0.36em;
  }

  .statement { font-size: 17px; max-width: none; }

  .contact-label { font-size: 12px; }

  .email { font-size: 17px; }

  .statutory {
    display: block;
  }

  .statutory dt {
    font-size: 11px;
    margin-top: 1.1rem;
  }

  .statutory dt:first-child { margin-top: 0; }

  .statutory dd { font-size: 12px; }

  .copyright { font-size: 11px; }
}

/* ---- Print: the plate as a filed record on paper ---- */

@media print {
  @page { margin: 22mm; }

  html, body { background: #fff; }

  body {
    color: var(--ink);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Natural document flow; the screen's viewport anchoring does not apply on paper */
  .plate {
    min-height: auto;
    display: block;
    padding: 0;
  }

  .identity { padding-top: 0; }

  .register {
    margin-top: 0;
    padding-bottom: 0;
    break-inside: avoid;
  }

  .wordmark {
    font-size: 22pt;
    letter-spacing: 0.42em;
    margin-right: -0.42em;
  }

  .statement { font-size: 12pt; max-width: 130mm; margin-top: 8mm; }

  .contact { margin-top: 9mm; }
  .contact-label { font-size: 8pt; }
  .email {
    font-size: 12pt;
    /* keep the address legible as ink on the sheet */
    text-decoration-color: var(--ink);
  }

  /* Set the register off from the statement, the way a filed extract sits below a heading */
  .register { margin-top: 22mm; }

  .rule { width: 74mm; margin-bottom: 5mm; }

  .statutory {
    display: grid;
    grid-template-columns: 46mm auto;
    align-items: baseline;
    line-height: 1.7;
  }
  .statutory dt { font-size: 8pt; }
  .statutory dd { font-size: 9pt; }

  .copyright { font-size: 8pt; margin-top: 8mm; }
}
