/* Generated by scripts/fetch_fonts.py - do not edit by hand. */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/opensans-latin-ext-400-800.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/opensans-latin-400-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Mukta Malar';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/muktamalar-tamil-400.woff2') format('woff2');
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: 'Mukta Malar';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/muktamalar-tamil-600.woff2') format('woff2');
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}


/* ==========================================================================
   Kristal Foods - Public Notice
   --------------------------------------------------------------------------
   A legal instrument, set as a document rather than as a web page.

   The visual language is deliberately that of a gazette notice: warm laid
   paper, a tan double rule under the masthead, generous margins and a
   measured typographic scale. Nothing animates for its own sake, and nothing
   implies a certification the notice does not carry - there is no seal, no
   stamp and no attestation device, because none exists.

   Palette and typefaces are the firm's own, taken from the Kristal Foods
   site: tan #C2A772 and grey #929196 from the logo, brown #82564A from the
   theme, Open Sans for Latin and Mukta Malar for Tamil.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  /* Brand, as used on the firm's own site */
  --brand-tan:    #C2A772;   /* the cone mark; rules and marginalia only */
  --brand-brown:  #82564A;   /* theme primary; headings and emphasis */
  /* The wordmark grey. It belongs to the logo artwork and is NOT used for live
     text anywhere: against --paper it reaches only 2.93:1, below even the 3:1
     large-text floor. Kept as a token so the brand is documented in one place. */
  --brand-grey:   #929196;

  /* Document surface */
  --paper:        #FBF7F1;   /* the sheet */
  --paper-edge:   #F1E8DA;   /* the surround the sheet sits on */
  --paper-deep:   #EADFCD;

  /* Ink. Warm blacks, so text sits with the tan rather than against it. */
  --ink:          #241C16;   /* body */
  --ink-soft:     #5A4A3F;   /* secondary */
  --ink-faint:    #7A6656;   /* meta - held at >=4.5:1 on --paper */

  --rule:         rgba(36, 28, 22, 0.14);
  --rule-strong:  rgba(36, 28, 22, 0.28);

  /* A single measure governs the reading column throughout. */
  --measure:      37rem;
  --sheet:        min(100% - 2rem, 58rem);

  --step--1: clamp(0.78rem, 0.74rem + 0.18vw, 0.86rem);
  --step-0:  clamp(1.0rem,  0.96rem + 0.2vw,  1.09rem);
  --step-1:  clamp(1.16rem, 1.09rem + 0.32vw, 1.32rem);
  --step-2:  clamp(1.4rem,  1.26rem + 0.6vw,  1.75rem);
  --step-3:  clamp(1.9rem,  1.5rem + 1.8vw,   3.1rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Clears the sticky language bar when jumping to a section. */
  scroll-padding-top: 5.5rem;
}

@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;
  }
}

body {
  margin: 0;
  background-color: var(--paper-edge);
  color: var(--ink);
  /* Mukta Malar sits in the base stack, not only on the Tamil block. Open
     Sans declares Latin unicode-ranges only, so Tamil codepoints fall through
     to Mukta Malar automatically wherever they appear - the masthead date,
     the 404 page. Without this, Tamil outside .notice--ta renders
     as blanks on any machine with no system Tamil font, which is exactly what
     headless Chrome does when printing. */
  font-family: 'Open Sans', 'Mukta Malar', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: oldstyle-nums;
}

/* Guilloche: the fine interference lines of security paper. Two counter-
   rotated sine grids at very low opacity - present as texture, never as
   pattern you consciously read. Fixed, so the sheet appears to lie on it. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(
      64deg,
      rgba(130, 86, 74, 0.055) 0 1px,
      transparent 1px 9px
    ),
    repeating-linear-gradient(
      -64deg,
      rgba(194, 167, 114, 0.07) 0 1px,
      transparent 1px 9px
    ),
    radial-gradient(
      120% 90% at 50% 0%,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0) 60%
    );
}

/* A whisper of grain, so large flat areas of paper are not perfectly flat. */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------- skip / a11y ----- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Base link colour. :where() keeps specificity at zero so the langbar and
   skip link override it without !important. */
:where(a) {
  color: var(--brand-brown);
  text-underline-offset: 0.18em;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-brown);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- sheet -- */

.sheet {
  width: var(--sheet);
  margin: clamp(1rem, 4vw, 3.5rem) auto clamp(2rem, 6vw, 5rem);
  background: var(--paper);
  border: 1px solid var(--paper-deep);
  box-shadow:
    0 1px 1px rgba(36, 28, 22, 0.04),
    0 8px 28px -12px rgba(36, 28, 22, 0.16),
    0 30px 70px -40px rgba(36, 28, 22, 0.3);
  padding: clamp(1.5rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 5rem);
}

/* ------------------------------------------------------------- masthead -- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.masthead__logo {
  display: block;
  width: clamp(168px, 22vw, 232px);
  height: auto;
}

/* The publication date, bare. It is the only date on the page and sits where
   a gazette prints its issue date: right of the masthead, above the rule.
   margin-left keeps it on the right edge when the masthead wraps on phones. */
.masthead__date {
  margin: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: right;
  font-variant-numeric: lining-nums;
}
.masthead__date-en {
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.masthead__date-ta {
  font-family: 'Mukta Malar', 'Open Sans', sans-serif;
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--ink-faint);
}

/* The gazette double rule. */
.rule-double {
  height: 4px;
  margin: clamp(1.4rem, 3vw, 2.1rem) 0 clamp(1.6rem, 3.5vw, 2.4rem);
  border: 0;
  border-top: 2px solid var(--brand-tan);
  border-bottom: 1px solid var(--brand-tan);
  background: none;
  opacity: 0.85;
}

/* ---------------------------------------------------------------- title -- */

/* The 404 page keeps a standalone title block; the notice itself does not.
   Each language section there carries its own heading, so a separate document
   title would print the words "Public Notice" twice on the same screen. */

.title { text-align: center; }

.title__main {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.11em;
  text-indent: 0.11em;
  text-transform: uppercase;
  color: var(--brand-brown);
}

.title__tamil {
  margin: clamp(0.5rem, 1.6vw, 0.9rem) 0 0;
  font-family: 'Mukta Malar', 'Open Sans', sans-serif;
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}


/* ------------------------------------------------------ language switch -- */

.langbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: clamp(1.8rem, 4vw, 2.8rem) calc(clamp(1.25rem, 5vw, 5rem) * -1) clamp(1.4rem, 3.5vw, 2.2rem);
  padding: 0.75rem clamp(1.25rem, 5vw, 5rem);
  /* Near-opaque. At 88% the notice text scrolling underneath stayed legible
     through the bar, which read as a rendering fault on a legal document.
     Flat paper is the unconditional value; the translucent blend is applied
     only under @supports below. A second `background: color-mix(...)`
     declaration would NOT be a working fallback here: the var() inside makes
     it invalid at computed-value time, which resolves the property to unset
     rather than to the previous declaration, leaving the bar transparent. */
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}

@supports (backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px)) {
  .langbar {
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    backdrop-filter: blur(8px) saturate(1.1);
  }
}

/* The translucent refinements, only where color-mix is understood. Everything
   above already renders correctly without them. */
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .langbar     { background: color-mix(in srgb, var(--paper) 96%, transparent); }
  .langbar__set { background: color-mix(in srgb, var(--paper-edge) 55%, transparent); }
  .langbar__link:hover { background: color-mix(in srgb, var(--brand-tan) 22%, transparent); }
}

.langbar__set {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-edge);
}

.langbar__link {
  padding: 0.42rem clamp(0.9rem, 3vw, 1.5rem);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.langbar__link + .langbar__link { border-left: 1px solid var(--rule-strong); }
.langbar__link:hover { background: var(--paper-deep); }

/* Set by script from the section in view. Falls back gracefully: with no
   JS the control is still a pair of working anchor links. */
.langbar__link[aria-current='true'] {
  background: var(--brand-brown);
  color: var(--paper);
}

.langbar__link--ta {
  font-family: 'Mukta Malar', 'Open Sans', sans-serif;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------- article -- */

.notice { max-width: var(--measure); margin: 0 auto; }

.notice + .notice { margin-top: clamp(2.4rem, 6vw, 4rem); }

/* The caution marks flanking each heading. Em-sized so the pair scales with
   the heading it brackets - including in print - and nudged up a whisker so
   they centre on the cap height of the uppercase text rather than on the
   full line box. The tint inside the triangle is the logo tan. */
.notice__caution {
  flex: none;
  width: 0.52em;
  height: auto;
  transform: translateY(-0.04em);
  color: currentColor;
}

/* This is the notice's own heading and the page's principal title. Each
   language block carries it, so either block stands complete on its own -
   including when the Tamil half breaks onto its own printed page. Flex, so
   the caution marks sit optically level with the text between them. */
.notice__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1.15rem);
  margin: 0 0 clamp(1.4rem, 3.4vw, 2.1rem);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: center;
  color: var(--brand-brown);
}

/* The trailing tracking after the last letter would otherwise push the text
   a half-space off centre between the two marks. */
.notice__heading-text {
  margin-inline-end: -0.11em;
}

/* Justified, as a notice of this kind is set in print. Hyphenation is allowed
   because the measure is narrow and the vocabulary is long, but limited so it
   never strands a two-letter fragment ("fi-nanciers") or hyphenates three
   lines running. */
.notice__body > p {
  margin: 0 0 1.35em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -webkit-hyphenate-limit-before: 4;
  -webkit-hyphenate-limit-after: 4;
  hyphenate-limit-chars: 8 4 4;
  hyphenate-limit-lines: 2;
}

.notice__body > p:last-child { margin-bottom: 0; }


.notice__body strong {
  font-weight: 700;
  color: var(--ink);
}

/* --- Tamil ---------------------------------------------------------------
   Tamil needs more leading than Latin at the same optical size, and must
   never be hyphenated; justification alone is fine at this measure. */

.notice--ta {
  font-family: 'Mukta Malar', 'Open Sans', sans-serif;
  line-height: 1.95;
}

/* Tamil sets optically larger than Latin at the same size, so the heading is
   stepped down to match the weight of the English one on the page. */
.notice--ta .notice__heading {
  font-family: 'Mukta Malar', 'Open Sans', sans-serif;
  font-size: calc(var(--step-3) * 0.82);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.35;
}

.notice--ta .notice__heading-text {
  margin-inline-end: -0.03em;
}

/* The cap-height nudge is for uppercase Latin; Tamil fills its line box, so
   the marks centre plainly. */
.notice--ta .notice__caution {
  transform: none;
}

/* Phones: the flanked line - two marks, two gaps and thirteen tracked
   capitals - must land on ONE line, or a mark wraps beneath the title and
   reads as a typesetting fault. A viewport-stepped size with tighter
   tracking keeps the whole assembly inside a 320px column. */
@media (max-width: 30rem) {
  .notice__heading {
    font-size: clamp(1.3rem, 7vw, 1.9rem);
    letter-spacing: 0.07em;
    gap: 0.55rem;
  }
  .notice__heading-text { margin-inline-end: -0.07em; }
  .notice--ta .notice__heading { letter-spacing: 0.02em; }
  .notice--ta .notice__heading-text { margin-inline-end: -0.02em; }
}

/* Tamil justifies like the English - the register of a printed notice - but
   is never hyphenated: breaking a Tamil compound mid-glyph-cluster is far
   worse than a looser line. */
.notice--ta .notice__body > p {
  hyphens: none;
  -webkit-hyphens: none;
}

/* ------------------------------------------------------------ signature -- */

.signature {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.2rem, 3vw, 1.7rem);
  border-top: 1px solid var(--rule);
  text-align: right;
  line-height: 1.85;
}

.signature p { margin: 0; }
.signature strong { font-weight: 700; }

/* "Sd/-" and its Tamil counterpart are the first line of the block; giving
   them a little air separates the attestation from the name beneath it. */
.signature__mark {
  display: block;
  margin-bottom: 0.2em;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.signature__tel {
  color: var(--brand-brown);
  text-decoration: none;
  border-bottom: 1px solid rgba(130, 86, 74, 0.35);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.03em;
}
.signature__tel:hover { border-bottom-color: var(--brand-brown); }

/* -------------------------------------------------------------- divider -- */

/* Echoes the facet geometry of the cone in the Kristal Foods mark. */
.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: clamp(2.6rem, 6vw, 4rem) auto;
  max-width: var(--measure);
  border: 0;
  height: auto;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-tan), transparent);
}
.divider__facet {
  width: 11px;
  height: 11px;
  flex: none;
  transform: rotate(45deg);
  border: 1px solid var(--brand-tan);
}

/* ---------------------------------------------------------------- print --
   The page must produce a complete, filing-quality bilingual document from
   the browser's own Save-as-PDF. Both languages print - nothing is hidden -
   and the screen furniture (sticky bar, textures, shadows) is removed. */

@media print {
  @page { size: A4; margin: 18mm 16mm 20mm; }

  html { scroll-behavior: auto; }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.6;
  }
  body::before, body::after { display: none !important; }

  .sheet {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .langbar, .skip-link { display: none !important; }

  .masthead__logo { width: 46mm; }

  .title__main   { font-size: 21pt; color: #000; }
  .title__tamil  { font-size: 14pt; color: #333; }
  .notice__heading { font-size: 13pt; color: #000; }

  /* The screen rule for the Tamil heading is `.notice--ta .notice__heading`
     at specificity 0-2-0, and @media adds none, so the 0-1-0 rule above loses
     to it and the Tamil title printed at 22pt beside a 13pt English one. This
     matches that specificity so source order decides. 11pt keeps the ~0.82
     optical step-down Mukta Malar needs against uppercase Open Sans.
     Do not instead edit the screen rule: its vw term resolves against the A4
     page box in print, so no screen-side value lands on 13pt. */
  .notice--ta .notice__heading { font-size: 11pt; }

  .rule-double { border-top-color: #000; border-bottom-color: #000; opacity: 1; }
  .notice__caution { color: #000; }
  .notice__caution-face { fill: none; }
  .masthead__date-en { color: #000; }
  .masthead__date-ta { color: #333; }
  .divider::before, .divider::after { background: #999; }
  .divider__facet { border-color: #666; }

  /* .notice keeps --measure on paper. Lifting it made the body run the full
     178mm content box at ~105 characters a line while .divider stayed at
     the measure, so the rule bracketing the text was visibly narrower than
     the text. Aligned, the printed line is also a readable ~75 characters. */
  /* Generous for Tamil compound glyphs at 10.5pt. Tightening it further does
     not buy back the fourth sheet - with the service address in the
     attestation the document is simply a four-page one now - so legibility
     wins and the final page carries the intact Tamil attestation, which is
     how a signature page normally closes a legal document. */
  .notice--ta { line-height: 1.74; }

  /* The viewport-relative gaps collapse to nothing on paper, so they are
     restated in mm. Kept deliberately tight: at looser values the document
     spills a few lines onto a fourth sheet, which reads as a printing fault
     the same way a near-empty page 2 did. */
  .rule-double     { margin: 5mm 0 5mm; }
  .notice__heading { margin: 7mm 0 4mm; }
  .divider         { margin: 5mm auto; }
  /* Screen line-height (1.85) would inherit into print and, with the
     service-address lines added, push the Tamil attestation onto its own
     sheet. Tightened, the whole document closes on three pages. */
  .signature       { margin-top: 4mm; padding-top: 2mm; line-height: 1.65; }

  .signature__tel { color: #000; border-bottom: 0; }

  /* Keep each notice whole where the paper allows, and never strand a
     signature block or a heading on its own. */
  .notice { break-inside: auto; }
  .notice__heading, .title { break-after: avoid; }
  /* Keep each attestation whole. `break-before: avoid` used to sit alongside
     this, but when a signature landed exactly at a page boundary the pair was
     unsatisfiable and Chrome resolved it by breaking INSIDE the block - the
     phone number printed alone on its own sheet. A signature that starts a
     fresh page intact is fine; one split mid-attestation is not. */
  .signature { break-inside: avoid; }
  .notice__body > p { orphans: 3; widows: 3; }

  /* The Tamil block is deliberately NOT forced onto a fresh page. The English
     half ends part-way down a sheet, so a forced break left a near-empty page
     in the middle of the document, which reads as a printing fault. The facet
     divider and the heading carry the separation instead. */
}

/* ------------------------------------------------------- forced colours -- */

@media (forced-colors: active) {
  .sheet { border: 1px solid CanvasText; }
  .langbar__link[aria-current='true'] {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .divider__facet { border-color: CanvasText; }
}
