/* =========================================================================
   THE CLASSIC FORM — calm, architectural, measured.
   ivory / mist / carbon dominant; ultramarine used sparingly.
   ========================================================================= */

/* ---------- hero ---------- */
.cf-hero { padding-block: clamp(32px, 5vw, 72px) clamp(72px, 9vw, 140px); }
.cf-hero__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.cf-hero__title {
  font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: .88; letter-spacing: -0.045em;
  margin: .1em 0 .2em; font-weight: 400;
}
.cf-hero__title span { display: block; font-weight: 700; color: var(--ultra); }
.cf-hero__sub {
  font-family: var(--f-display); font-size: var(--t-s); letter-spacing: .02em;
  margin-bottom: 2rem; padding-left: 18px; border-left: 2px solid var(--carbon);
}
.cf-hero .lede { margin-bottom: 1.4rem; }
.cf-hero .prose { max-width: 52ch; }

.cf-contents { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid rgba(32,33,36,.25); }
.cf-contents ol { list-style: none; display: grid; grid-template-columns: 1fr; }
.cf-contents li { border-bottom: 1px solid rgba(32,33,36,.15); }
.cf-contents a {
  display: flex; align-items: center; gap: 16px; min-height: 48px; text-decoration: none;
  font-family: var(--f-display); font-size: .95rem; transition: padding .3s var(--ease), color .2s;
}
.cf-contents a span { font-family: var(--f-cond); font-weight: 800; font-size: 1.15rem; color: var(--verm-ink); min-width: 2.2em; }
.cf-contents a:hover { padding-left: 8px; color: var(--ultra); }

.cf-hero__frame { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.cf-hero__rule {
  width: 22px; color: var(--carbon);
  background:
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 10px) left / 8px 100% no-repeat,
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 50px) left / 22px 100% no-repeat;
  opacity: .5; border-left: 1px solid currentColor;
}
.cf-hero__plate .plate__frame { background: var(--mist); }

@media (min-width: 900px) {
  .cf-hero__grid { grid-template-columns: 1.25fr .9fr; }
  .cf-hero__plate { margin-top: clamp(40px, 6vw, 110px); }
  .cf-contents ol { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* ---------- timeline: a measuring rule laid across the eras ---------- */
.cf-time__head { display: grid; gap: 8px 64px; margin-bottom: clamp(48px, 6vw, 88px); }
.cf-time__head .h-xl { max-width: 13ch; }
.cf-time__rule { list-style: none; position: relative; display: grid; gap: 0; }
.cf-era { position: relative; padding: 0 0 40px 44px; }
.cf-era::before { /* station marker */
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ivory); border: 2px solid var(--carbon);
}
.cf-era--now::before { background: var(--ultra); border-color: var(--ultra); }
/* the spine: a vertical measuring rule on small screens */
.cf-time__rule::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 30px; width: 18px;
  background:
    linear-gradient(var(--carbon), var(--carbon)) left / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--carbon) 0 1px, transparent 1px 12px) 2px 0 / 8px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--carbon) 0 1px, transparent 1px 60px) 2px 0 / 16px 100% no-repeat;
  opacity: .7;
}
.cf-era__no { display: block; font-family: var(--f-cond); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--carbon); margin-bottom: 12px; }
.cf-era--now .cf-era__no { color: var(--ultra); -webkit-text-stroke: 0; }
.cf-era__when { font-family: var(--f-display); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--verm-ink); margin-bottom: .5rem; }
.cf-era__title { font-size: var(--t-s); font-weight: 700; letter-spacing: 0; line-height: 1.2; margin-bottom: .6em; }
.cf-era p:last-child { font-size: .95rem; margin: 0; max-width: 46ch; }
.cf-time__foot { margin: clamp(24px, 4vw, 56px) 0 0; }

@media (min-width: 640px) {
  .cf-time__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .cf-time__head .label { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .cf-time__rule { grid-template-columns: repeat(6, 1fr); padding-top: 64px; }
  .cf-time__rule::before { /* horizontal rule */
    left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 26px;
    background:
      linear-gradient(var(--carbon), var(--carbon)) top / 100% 2px no-repeat,
      repeating-linear-gradient(90deg, var(--carbon) 0 1px, transparent 1px 12px) 0 2px / 100% 10px no-repeat,
      repeating-linear-gradient(90deg, var(--carbon) 0 1px, transparent 1px 60px) 0 2px / 100% 24px no-repeat;
  }
  .cf-era { padding: 0 28px 0 0; }
  .cf-era::before { left: 0; top: -71px; }
  .cf-era::after { content: ""; position: absolute; left: 7px; top: -54px; height: 46px; width: 1px; background: var(--carbon); opacity: .45; }
  .cf-era:nth-child(even) { margin-top: 72px; } /* stepped rhythm */
  .cf-era:nth-child(even)::before { top: -143px; }
  .cf-era:nth-child(even)::after { top: -126px; height: 118px; }
}

/* ---------- proportion ---------- */
.cf-prop__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
.cf-prop__intro .h-xl { max-width: 10ch; }
.cf-prop__frame { position: relative; }
.cf-pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--carbon); color: var(--ivory); font-family: var(--f-display); font-size: .78rem; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(242,239,229,.7);
}
.cf-prop__notes { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(32,33,36,.25); }
.cf-prop__notes li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(32,33,36,.15); }
.cf-prop__notes p { margin: 0; font-size: .98rem; }
.cf-prop__notes a { color: var(--ultra); }
.cf-prop__key { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--carbon); font-family: var(--f-display); font-weight: 700; font-size: .85rem; }
@media (min-width: 900px) {
  .cf-prop__grid { grid-template-columns: .95fr 1.05fr; grid-template-areas: "intro intro" "plate notes"; column-gap: clamp(40px, 6vw, 110px); }
  .cf-prop__intro { grid-area: intro; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
  .cf-prop__intro .label { grid-column: 1 / -1; }
  .cf-prop__plate { grid-area: plate; }
  .cf-prop__notes { grid-area: notes; align-self: center; }
}

/* ---------- pleats ---------- */
.cf-pleat__head { margin-bottom: clamp(40px, 5vw, 72px); }
.cf-pleat__head .h-xl { max-width: 14ch; }
.cf-pleat__grid { display: grid; gap: clamp(40px, 5vw, 64px); }
.cf-pleat__col { border-top: 1px solid rgba(242,239,229,.35); padding-top: 28px; }
.cf-diagram { width: 100%; max-width: 220px; height: auto; color: var(--ivory); margin-bottom: 24px; }
.cf-list { padding-left: 1.2em; }
.cf-list li { margin-bottom: .55em; font-size: .97rem; }
.cf-list li::marker { color: var(--verm); }
.cf-pleat__plate { max-width: 420px; }
.cf-pleat__foot { margin: clamp(32px, 5vw, 64px) 0 0; }
@media (min-width: 700px) {
  .cf-pleat__grid { grid-template-columns: 1fr 1fr; }
  .cf-pleat__plate { grid-column: 1 / -1; justify-self: center; width: 60%; }
}
@media (min-width: 1100px) {
  .cf-pleat__grid { grid-template-columns: 1fr 1fr .85fr; align-items: start; }
  .cf-pleat__plate { grid-column: auto; width: auto; margin-top: -120px; }
}

/* ---------- crease ---------- */
.cf-crease__grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.cf-crease__line { display: none; }
.cf-crease__text .h-xxl { max-width: 8ch; }
.cf-crease__text .lede { margin-bottom: 1.6rem; }
.cf-crease__plate { max-width: 520px; }
@media (min-width: 900px) {
  .cf-crease__grid { grid-template-columns: .8fr 2px 1.1fr; column-gap: clamp(40px, 5vw, 88px); align-items: start; }
  .cf-crease__plate { position: sticky; top: calc(var(--mast-h) + 32px); }
  .cf-crease__line { display: block; align-self: stretch; background: var(--ultra); }
}

/* ---------- colour ---------- */
.cf-colour__head { display: grid; gap: 8px 64px; margin-bottom: 40px; }
.cf-colour__head .h-xl { max-width: 11ch; }
.cf-swatches { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: clamp(48px, 7vw, 96px); }
.cf-swatches li { background: var(--sw); min-height: 96px; display: flex; align-items: flex-end; padding: 10px 12px; }
.cf-swatches span { font-family: var(--f-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: var(--ivory); color: var(--carbon); padding: 3px 8px; }
.cf-colour__plates { display: grid; gap: 40px; }
.cf-colour__notes { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid rgba(32,33,36,.3); padding-top: 32px; }
.cf-colour__notes p { margin: 0; font-size: .97rem; }
.cf-colour__notes a { color: var(--ultra); }
@media (min-width: 640px) {
  .cf-colour__head { grid-template-columns: 1fr 1.2fr; align-items: end; }
  .cf-colour__head .label { grid-column: 1 / -1; }
  .cf-swatches { grid-template-columns: repeat(6, 1fr); }
  .cf-swatches li { min-height: 150px; }
  .cf-colour__plates { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
  .cf-colour__p2 { margin-top: clamp(60px, 9vw, 140px); }
  .cf-colour__p3 { margin-top: clamp(30px, 4.5vw, 70px); }
  .cf-colour__notes { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- combinations ---------- */
.cf-combo__head { display: grid; gap: 8px 64px; margin-bottom: 40px; }
.cf-combo__head .h-xl { max-width: 12ch; }
@media (min-width: 640px) {
  .cf-combo__head { grid-template-columns: 1fr 1.1fr; align-items: end; }
  .cf-combo__head .label { grid-column: 1 / -1; }
}
.cf-table { border-top: 6px solid var(--carbon); }
.cf-table table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.cf-table th, .cf-table td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid rgba(32,33,36,.18); }
.cf-table thead th { font-family: var(--f-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.cf-table tbody th { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; white-space: nowrap; }
.cf-table tbody th i { display: inline-block; width: 14px; height: 14px; background: var(--sw); margin-right: 12px; vertical-align: -1px; }
.cf-table tbody tr { transition: background .2s; }
.cf-table tbody tr:hover { background: rgba(216,217,213,.45); }
@media (max-width: 760px) {
  .cf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cf-table table, .cf-table tbody, .cf-table tr, .cf-table th, .cf-table td { display: block; }
  .cf-table tr { padding: 18px 0; border-bottom: 1px solid rgba(32,33,36,.25); }
  .cf-table th, .cf-table td { border: 0; padding: 3px 0; }
  .cf-table tbody th { margin-bottom: 6px; }
  .cf-table td::before { display: block; font-family: var(--f-display); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
  .cf-table td:nth-of-type(1)::before { content: "Shirt"; }
  .cf-table td:nth-of-type(2)::before { content: "Shoes & belt"; }
  .cf-table td:nth-of-type(3)::before { content: "Best for"; }
  .cf-table td { padding-bottom: 8px; }
}
.cf-shoes { display: grid; gap: 32px; margin-top: clamp(64px, 9vw, 128px); }
.cf-shoes__intro p { max-width: 44ch; }
.cf-shoes__intro .h-l { max-width: 12ch; }
@media (min-width: 900px) { .cf-shoes { grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 110px); } }

/* ---------- close ---------- */
.cf-close__grid { display: grid; gap: 32px; }
.cf-close .h-xxl { max-width: 9ch; }
.cf-close__links { list-style: none; margin: 32px 0; border-top: 1px solid rgba(242,239,229,.4); }
.cf-close__links li { border-bottom: 1px solid rgba(242,239,229,.25); }
.cf-close__links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; text-decoration: none; font-family: var(--f-display); font-size: clamp(1.05rem, 1.6vw, 1.35rem); transition: padding .3s var(--ease); }
.cf-close__links a span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #FFB8A8; white-space: nowrap; }
.cf-close__links a:hover { padding-left: 10px; }
.cf-close__contact { margin: 0; }
@media (min-width: 900px) { .cf-close__grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); } }
.cf-colour .cf-colour__p1 .plate__frame, .cf-colour .cf-colour__p3 .plate__frame { background: var(--ivory); }
