/*
 * Takumi Kin - theme.css
 *
 * Measured from the brand's Figma file (PRE-LAUNCH · Desktop 1921), not from a bought template:
 * there is no vendor sheet under this one, so every class the components emit is defined here.
 *
 * THE FONTS, AND THE TWO THAT ARE NOT HERE
 *
 * The design uses four families. Two are free and ship in assets/fonts/: Inter (the paragraph, the
 * field, the small print) and Josefin Sans (the button). Two are commercial and cannot be bundled:
 *
 *   Helvetica Neue    the heading and the eyebrow. Used where the visitor's system has it (every
 *                     Apple device); elsewhere Inter stands in, which is the closest free face.
 *   Freight Big Pro   the gold italic words. An Adobe Fonts family. Until a kit is added the
 *                     stack falls to Cormorant Garamond, shipped here and scaled to sit at the
 *                     same size. Adding the kit needs use.typekit.net in the site's
 *                     csp_extra_origins, or the policy blocks it without a word.
 *
 * Self-hosted because the site's Content-Security-Policy allows font-src 'self' only.
 *
 * BREAKPOINTS: 991px and 767px, the two theme.json declares. No others.
 */

/* ------------------------------------------------------------------ fonts */

@font-face {
    font-family: 'TK Inter';
    font-style: normal;
    font-weight: 300 400;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'TK Josefin Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/josefin-sans-300-latin.woff2') format('woff2');
}

/* Stands in for Freight Big Pro. Cormorant draws smaller at the same size - the adjust closes it. */
@font-face {
    font-family: 'TK Cormorant';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    size-adjust: 112%;
    src: url('../fonts/cormorant-garamond-500-italic-latin.woff2') format('woff2');
}

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

:root {
    --tk-paper:   #f2efe9;
    --tk-ink:     #0d0d0d;
    --tk-black:   #000000;
    --tk-brass:   #866c4c;
    --tk-eyebrow: #8c7350;
    --tk-error:   #9b3b2b;

    --tk-sans:    'TK Inter', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --tk-display: 'Helvetica Neue', Helvetica, 'TK Inter', Arial, sans-serif;
    --tk-serif:   'freight-big-pro', 'Freight Big Pro', 'TK Cormorant', Georgia, serif;
    --tk-button:  'TK Josefin Sans', 'Josefin Sans', var(--tk-sans);

    --tk-gutter-x: 32px;
    --tk-gutter-y: 40px;
}

/* ------------------------------------------------------------------- base */

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

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

body {
    margin: 0;
    background: var(--tk-paper);
    color: var(--tk-ink);
    font-family: var(--tk-sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--tk-brass);
    color: var(--tk-paper);
}

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

a {
    color: inherit;
}

.tk-visually-hidden {
    position: absolute;
    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;
}

/*
 * THE FRAME. The design is one screen: the logo at the top edge, the statement in the middle, the
 * footer on the bottom edge. The shell wraps header, #main-content and footer in <main id="content">,
 * so that is the column that fills the viewport, and #main-content is what takes the slack.
 */
#content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: var(--tk-gutter-y) var(--tk-gutter-x);
}

#main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 0;
}

/*
 * THE CONTAINER OPTION. Every block's "container" select lands here as tk-container or
 * tk-container-fluid. The page's side gutter is already on #content, so fluid is simply the full
 * width inside it, and boxed caps it and centres it.
 */
:root {
    --tk-container: 1320px;
}

.tk-container {
    width: 100%;
    max-width: var(--tk-container);
    margin-left: auto;
    margin-right: auto;
}

.tk-container-fluid {
    width: 100%;
}

/* ----------------------------------------------------------------- header */

.tk-header {
    display: flex;
    justify-content: center;
}

.tk-header__brand {
    display: block;
    line-height: 0;
}

.tk-header__logo {
    display: block;
    width: 212px;
    height: auto;
}

/* ------------------------------------------------------------ breadcrumbs */

.tk-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tk-breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.4;
}

.tk-breadcrumbs a {
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.tk-breadcrumbs a:hover {
    opacity: 1;
}

.tk-breadcrumbs [aria-current] {
    color: var(--tk-brass);
}

/* ------------------------------------------------------------- newsletter */

.tk-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.tk-newsletter > * {
    margin: 0;
}

.tk-newsletter__eyebrow {
    font-family: var(--tk-display);
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tk-eyebrow);
}

/*
 * 79.5px at the design's 1920 and never wider; 5.4vw keeps the first line on one row down to a
 * laptop. In the design the two lines are two elements 32px apart - line-height 1.66 is that gap.
 */
.tk-newsletter__title {
    font-family: var(--tk-display);
    font-weight: 300;
    font-size: clamp(36px, 5.4vw, 79.5px);
    line-height: 1.66;
    letter-spacing: 0;
    color: var(--tk-black);
}

.tk-newsletter__title em,
.tk-newsletter__title i {
    font-family: var(--tk-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--tk-brass);
}

.tk-newsletter__text {
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--tk-ink);
    opacity: 0.75;
}

.tk-newsletter__form {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: calc(452px + 16px + 180px);
    justify-content: center;
}

.tk-newsletter__input {
    flex: 0 1 452px;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--tk-ink);
    border-radius: 0;
    background: transparent;
    color: var(--tk-ink);
    font-family: var(--tk-sans);
    font-weight: 300;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.tk-newsletter__input::placeholder {
    color: var(--tk-ink);
    opacity: 0.45;
}

.tk-newsletter__input:focus {
    outline: none;
    border-color: var(--tk-brass);
    box-shadow: inset 0 0 0 1px var(--tk-brass);
}

.tk-newsletter__button {
    flex: 0 0 auto;
    height: 56px;
    margin: 0;
    padding: 0 44px;
    border: 0;
    border-radius: 0;
    background: var(--tk-ink);
    color: #ffffff;
    font-family: var(--tk-button);
    font-weight: 300;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tk-newsletter__button:hover {
    background: var(--tk-brass);
}

.tk-newsletter__button:focus-visible {
    outline: 1px solid var(--tk-ink);
    outline-offset: 3px;
}

.tk-newsletter__button:disabled {
    cursor: progress;
    opacity: 0.6;
}

/* Sits between the form and the note, and takes the gap only while it has something to say. */
.tk-newsletter__status {
    font-size: 13px;
    line-height: 1.5;
    margin-top: -16px;
}

.tk-newsletter__status[hidden] {
    display: none;
}

.tk-newsletter__status.is-success {
    color: var(--tk-brass);
}

.tk-newsletter__status.is-error {
    color: var(--tk-error);
}

.tk-newsletter__note {
    font-size: 11px;
    line-height: 1.5;
    color: var(--tk-ink);
    opacity: 0.5;
}

/* ----------------------------------------------------------------- footer */

.tk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tk-footer__copyright {
    margin: 0;
    font-size: 11px;
    line-height: normal;
    letter-spacing: 0.06em;
    color: var(--tk-ink);
    opacity: 0.6;
}

.tk-footer__social {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-footer__social a {
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tk-footer__social a:hover {
    opacity: 0.6;
}

.tk-footer__social img {
    display: block;
    width: 16px;
    height: 16px;
}

.tk-footer__social-text {
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.06em;
}

/* ------------------------------------------------------------- breakpoints */

@media (max-width: 991px) {
    :root {
        --tk-gutter-x: 24px;
        --tk-gutter-y: 32px;
    }
}

@media (max-width: 767px) {
    :root {
        --tk-gutter-x: 16px;
        --tk-gutter-y: 24px;
    }

    #main-content {
        padding: 48px 0;
    }

    .tk-header__logo {
        width: 168px;
    }

    .tk-newsletter {
        gap: 24px;
    }

    .tk-newsletter__title {
        line-height: 1.2;
    }

    .tk-newsletter__text {
        font-size: 15px;
    }

    .tk-newsletter__form {
        flex-direction: column;
        gap: 12px;
    }

    .tk-newsletter__input,
    .tk-newsletter__button {
        flex: 0 0 auto;
        width: 100%;
    }

    .tk-newsletter__status {
        margin-top: -12px;
    }

    .tk-footer {
        flex-direction: column-reverse;
        text-align: center;
    }
}
