AgPerry's picture
Add files using upload-large-folder tool
aa09365 verified
Raw History Blame Contribute Delete
22.5 kB
/* Typography and colour tokens transcribed from captured computed styles of
https://www.apple.com/ (2026-08-29, 1440x900). See
materials/apple/source-evidence/desktop/home.json */
:root {
--text: #1d1d1f;
--text-secondary: #6e6e73;
--page-bg: #fff;
--section-bg: #f5f5f7;
--link: #0066cc;
--nav-bg: rgba(255, 255, 255, 0.8);
--nav-fg: rgba(0, 0, 0, 0.8);
--hairline: #d2d2d7;
--pill: #0071e3;
--pill-hover: #0077ed;
--font-text: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial,
sans-serif;
--font-display: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica,
Arial, sans-serif;
--nav-h: 44px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
font-family: var(--font-text);
font-size: 17px;
line-height: 25px;
letter-spacing: -0.374px;
color: var(--text);
background: var(--page-bg);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ---------- global nav ---------- */
.globalnav {
position: sticky;
top: 0;
z-index: 50;
height: var(--nav-h);
/* keeps the absolutely positioned flyout anchored to the whole bar */
isolation: isolate;
background: var(--nav-bg);
backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: saturate(180%) blur(20px);
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.globalnav-content {
max-width: 980px;
margin: 0 auto;
height: var(--nav-h);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 22px;
}
.globalnav-list {
display: flex;
flex: 1 1 auto;
justify-content: space-between;
align-items: center;
list-style: none;
margin: 0;
padding: 0 12px;
min-width: 0;
}
/* The flyout spans the full bar, so the item must not be the containing
block; the sticky .globalnav is. */
.globalnav-item { position: static; flex: 0 0 auto; }
.globalnav-link,
.globalnav-trigger {
display: flex;
align-items: center;
height: var(--nav-h);
padding: 0 8px;
font-size: 12px;
line-height: 1;
letter-spacing: -0.01em;
color: var(--nav-fg);
background: none;
border: 0;
font-family: inherit;
cursor: pointer;
white-space: nowrap;
}
.globalnav-link:hover,
.globalnav-trigger:hover { color: #000; text-decoration: none; }
.globalnav-logo { width: 14px; height: 44px; display: block; }
.globalnav-logo svg { display: block; margin-top: 15px; }
.globalnav-bag { position: relative; }
.globalnav-bag-count {
position: absolute;
top: 8px;
right: 0;
min-width: 14px;
padding: 0 3px;
border-radius: 7px;
background: var(--pill);
color: #fff;
font-size: 10px;
line-height: 14px;
text-align: center;
}
/* flyout */
.globalnav-flyout {
position: absolute;
left: 0;
right: 0;
top: var(--nav-h);
background: rgba(255, 255, 255, 0.94);
backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: saturate(180%) blur(20px);
border-bottom: 1px solid var(--hairline);
overflow: hidden;
max-height: 0;
opacity: 0;
transition: max-height 0.28s cubic-bezier(0.28, 0.11, 0.32, 1),
opacity 0.16s ease-out;
pointer-events: none;
}
.globalnav-item[data-open="true"] .globalnav-flyout {
max-height: 70vh;
opacity: 1;
pointer-events: auto;
}
.globalnav-flyout-inner {
max-width: 980px;
margin: 0 auto;
padding: 24px 22px 40px;
display: flex;
gap: 60px;
align-items: flex-start;
}
.globalnav-group h2 {
margin: 0 0 10px;
font-size: 12px;
line-height: 16px;
font-weight: 400;
color: var(--text-secondary);
}
.globalnav-group ul { list-style: none; margin: 0; padding: 0; }
.globalnav-group li {
margin: 0 0 8px;
/* Each item drifts in a beat after the one above it and the column to its
left, so the panel reads left-to-right, top-to-bottom. */
opacity: 0;
transform: translateY(6px);
}
.globalnav-item[data-open="true"] .globalnav-group li {
animation: flyout-reveal 0.32s cubic-bezier(0.32, 0.08, 0.24, 1) forwards;
animation-delay: calc((var(--column, 0) * 60ms) + (var(--row, 0) * 22ms));
}
@keyframes flyout-reveal {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.globalnav-group a {
font-size: 12px;
line-height: 16px;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--text);
}
.globalnav-group:first-child a { font-size: 24px; line-height: 32px; letter-spacing: -0.4px; }
.globalnav-group:first-child li { margin-bottom: 4px; }
.globalnav-group a:hover { text-decoration: none; color: var(--link); }
@media (prefers-reduced-motion: reduce) {
.globalnav-flyout { transition: none; }
.globalnav-item[data-open="true"] .globalnav-group li { animation: none; opacity: 1; transform: none; }
.globalnav-group li { opacity: 1; transform: none; }
}
/* ---------- shared layout ---------- */
.page { min-height: 60vh; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.section { text-align: center; padding: 60px 0; }
.section.alt { background: var(--section-bg); }
.section h2 {
font-family: var(--font-display);
font-size: 56px;
line-height: 60px;
font-weight: 600;
letter-spacing: -0.28px;
margin: 0 0 6px;
}
.section p.sub {
font-family: var(--font-display);
font-size: 28px;
line-height: 32px;
font-weight: 400;
margin: 0 0 18px;
}
.cta-row { display: flex; gap: 24px; justify-content: center; }
.pill {
display: inline-block;
padding: 8px 16px;
border-radius: 980px;
background: var(--pill);
color: #fff;
font-size: 17px;
line-height: 21px;
}
.pill:hover { background: var(--pill-hover); text-decoration: none; }
.pill.ghost {
background: transparent;
color: var(--link);
border: 1px solid var(--link);
}
.pill.ghost:hover { background: var(--link); color: #fff; }
.billboard {
position: relative;
height: 580px;
background-repeat: no-repeat;
background-position: center top;
/* The source renders these at the artwork's natural 580px height and lets
the width overflow, centred — not scaled up to cover the viewport. */
background-size: auto 100%;
text-align: center;
padding: 53px 0 0;
margin-bottom: 12px;
display: flex;
justify-content: center;
align-items: flex-start;
overflow: hidden;
}
/* The event hero puts its copy low over the artwork; promo units keep it at
the top. Measured on the source: heading top 365 of a 580px unit. */
.billboard.hero { padding-top: 365px; }
.billboard-copy { max-width: 780px; padding: 0 22px; }
.billboard h2 {
font-family: var(--font-display);
font-size: 56px;
line-height: 60px;
font-weight: 600;
letter-spacing: -0.28px;
margin: 0 0 6px;
}
.billboard p {
font-family: var(--font-display);
font-size: 28px;
line-height: 32px;
margin: 0 0 18px;
}
.billboard.hero { color: #f5f5f7; }
.billboard.hero h2 { color: #f5f5f7; }
.billboard.dark { color: #f5f5f7; background-color: #000; }
.billboard.light { color: var(--text); background-color: var(--section-bg); }
.tile-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
padding: 0 0 12px;
}
.tile {
position: relative;
height: 580px;
background-repeat: no-repeat;
background-position: center top;
background-size: auto 100%;
background-color: var(--section-bg);
text-align: center;
padding: 53px 20px 0;
overflow: hidden;
}
.tile.dark { background-color: #000; color: #f5f5f7; }
.tile.dark h3 { color: #f5f5f7; }
.tile-copy { position: relative; z-index: 1; }
.tile-logo { height: 40px; width: auto; margin: 0 auto 10px; display: block; }
.tile h3 {
font-family: var(--font-display);
font-size: 40px;
line-height: 44px;
font-weight: 600;
margin: 0 0 4px;
}
.tile p { margin: 0 0 14px; font-size: 19px; line-height: 23px; }
/* ---------- home gallery ---------- */
.gallery-section { padding: 60px 0 40px; }
.gallery-stage {
position: relative;
max-width: 980px;
margin: 0 auto;
aspect-ratio: 16 / 9;
border-radius: 18px;
overflow: hidden;
background: #000;
}
.gallery-item {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.6s ease-in-out;
pointer-events: none;
display: block;
}
.gallery-item[data-active="true"] { opacity: 1; pointer-events: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 60px 24px 22px;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
color: #f5f5f7;
font-size: 17px;
line-height: 23px;
text-align: left;
}
.gallery-kicker {
display: block;
font-size: 12px;
line-height: 16px;
text-transform: uppercase;
letter-spacing: 0.06em;
opacity: 0.85;
}
.gallery-controls {
display: flex;
gap: 10px;
align-items: center;
justify-content: center;
padding: 18px 0 0;
}
.gallery-controls button {
font-family: inherit;
font-size: 13px;
border: 1px solid var(--hairline);
background: #fff;
color: var(--text);
border-radius: 980px;
padding: 5px 12px;
cursor: pointer;
}
.gallery-dots { display: flex; gap: 6px; }
.gallery-dot {
width: 8px;
height: 8px;
padding: 0;
border-radius: 50%;
border: 0;
background: var(--hairline);
cursor: pointer;
}
.gallery-dot[aria-selected="true"] { background: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) {
.gallery-item { transition: none; }
}
/* ---------- product-line pages ---------- */
.line-hero { text-align: center; padding: 56px 0 0; background: var(--section-bg); }
.line-hero h1 {
font-family: var(--font-display);
font-size: 56px;
line-height: 60px;
font-weight: 600;
letter-spacing: -0.28px;
margin: 0 0 10px;
}
.line-lead {
font-size: 21px;
line-height: 27px;
max-width: 700px;
margin: 0 auto 20px;
color: var(--text-secondary);
}
.line-hero-image { display: block; width: 100%; max-width: 1200px; margin: 30px auto 0; }
.line-outline { list-style: none; margin: 12px 0 0; padding: 0; }
.line-outline li {
display: inline-block;
margin: 0 6px 8px;
padding: 6px 14px;
border: 1px solid var(--hairline);
border-radius: 980px;
background: #fff;
font-size: 14px;
}
/* ---------- breadcrumb ---------- */
.crumbs {
font-size: 12px;
line-height: 16px;
color: var(--text-secondary);
padding: 14px 0;
}
.crumbs a { color: var(--text-secondary); }
/* ---------- listing ---------- */
.listing-head { padding: 26px 0 10px; }
.listing-head h1 {
font-family: var(--font-display);
font-size: 40px;
line-height: 44px;
font-weight: 600;
letter-spacing: -0.4px;
margin: 0;
}
.listing-head .count { color: var(--text-secondary); font-size: 14px; }
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
padding: 14px 0;
border-bottom: 1px solid var(--hairline);
}
.toolbar select,
.chip {
font-family: inherit;
font-size: 14px;
line-height: 20px;
padding: 6px 12px;
border: 1px solid var(--hairline);
border-radius: 980px;
background: #fff;
color: var(--text);
cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.toolbar .spacer { flex: 1; }
.product-grid {
list-style: none;
margin: 0;
padding: 24px 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.product-card {
background: var(--section-bg);
border-radius: 18px;
padding: 16px;
text-align: center;
}
.product-card img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.product-card .badge {
display: inline-block;
font-size: 12px;
line-height: 16px;
color: #b64400;
margin-bottom: 4px;
}
.product-card .name {
display: block;
font-size: 14px;
line-height: 20px;
color: var(--text);
margin: 10px 0 4px;
}
.product-card .price { font-size: 14px; line-height: 20px; color: var(--text); }
.pagination {
display: flex;
gap: 8px;
align-items: center;
justify-content: center;
padding: 20px 0 60px;
}
.pagination a,
.pagination span {
min-width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 17px;
font-size: 14px;
border: 1px solid var(--hairline);
color: var(--text);
}
.pagination .current { background: var(--text); color: #fff; border-color: var(--text); }
.pagination .disabled { opacity: 0.35; }
.empty-state { text-align: center; padding: 80px 0; }
.empty-state h2 {
font-family: var(--font-display);
font-size: 40px;
line-height: 44px;
font-weight: 600;
margin: 0 0 12px;
}
/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 20px 0 60px; }
.pdp-gallery { background: var(--section-bg); border-radius: 18px; padding: 24px; }
.pdp-gallery img { width: 100%; height: auto; }
.pdp h1 {
font-family: var(--font-display);
font-size: 32px;
line-height: 36px;
font-weight: 600;
letter-spacing: -0.4px;
margin: 0 0 8px;
}
.pdp .price { font-size: 21px; line-height: 25px; margin: 0 0 2px; }
.pdp .finance { font-size: 14px; line-height: 20px; color: var(--text-secondary); margin: 0 0 18px; }
.pdp fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.pdp legend { font-size: 17px; font-weight: 600; padding: 0 0 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches a {
font-size: 12px;
line-height: 16px;
padding: 8px 12px;
border: 1px solid var(--hairline);
border-radius: 12px;
color: var(--text);
}
.swatches a[aria-current="true"] { border-color: var(--text); border-width: 2px; }
.swatches a.unavailable { opacity: 0.35; text-decoration: line-through; }
.pdp .actions { display: flex; flex-direction: column; gap: 10px; }
.pdp .actions button {
font-family: inherit;
font-size: 17px;
line-height: 21px;
padding: 12px 16px;
border-radius: 980px;
border: 0;
background: var(--pill);
color: #fff;
cursor: pointer;
}
.pdp .actions button.secondary { background: transparent; color: var(--link); border: 1px solid var(--link); }
.accordion { border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion summary {
cursor: pointer;
padding: 18px 0;
font-family: var(--font-display);
font-size: 24px;
line-height: 28px;
font-weight: 600;
}
.accordion .body { padding: 0 0 22px; max-width: 700px; }
/* ---------- bag ---------- */
.bag-head { text-align: center; padding: 60px 0 10px; }
.bag-head h1 {
font-family: var(--font-display);
font-size: 40px;
line-height: 44px;
font-weight: 600;
margin: 0 0 10px;
}
.bag-line {
display: grid;
grid-template-columns: 120px 1fr auto;
gap: 20px;
align-items: center;
padding: 24px 0;
border-bottom: 1px solid var(--hairline);
}
.bag-line img { width: 100%; border-radius: 12px; background: var(--section-bg); }
.bag-line .qty { display: flex; gap: 8px; align-items: center; }
.bag-line form { display: inline; }
.bag-line button {
font-family: inherit;
font-size: 14px;
background: none;
border: 0;
color: var(--link);
cursor: pointer;
padding: 0;
}
.bag-totals { max-width: 420px; margin-left: auto; padding: 24px 0; }
.bag-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.bag-totals .grand { font-size: 21px; font-weight: 600; border-top: 1px solid var(--hairline); margin-top: 8px; padding-top: 14px; }
/* ---------- search ---------- */
.search-head { padding: 30px 0 10px; }
.search-head h1 { font-family: var(--font-display); font-size: 40px; line-height: 44px; margin: 0 0 12px; }
.search-form { display: flex; gap: 10px; }
.search-form input {
flex: 1;
font-family: inherit;
font-size: 17px;
padding: 10px 16px;
border: 1px solid var(--hairline);
border-radius: 980px;
}
.search-tabs { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.search-tabs a { font-size: 14px; color: var(--text-secondary); }
.search-tabs a[aria-current="page"] { color: var(--text); font-weight: 600; }
/* ---------- footer ---------- */
.footer {
background: var(--section-bg);
color: var(--text-secondary);
font-size: 12px;
line-height: 16px;
padding: 34px 0;
}
.footer .cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 20px 0; }
.footer h3 { font-size: 12px; line-height: 16px; color: var(--text); margin: 0 0 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--text-secondary); }
.footer .legal { border-top: 1px solid var(--hairline); padding-top: 16px; }
.skip-link {
position: absolute;
left: -9999px;
}
.skip-link:focus { left: 22px; top: 6px; background: #fff; padding: 8px; z-index: 100; }
/* ---------- responsive ---------- */
@media (max-width: 833px) {
.product-grid { grid-template-columns: repeat(2, 1fr); }
.pdp { grid-template-columns: 1fr; }
.tile-grid { grid-template-columns: 1fr; }
.footer .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
.globalnav-content { padding: 0 16px; }
.globalnav-list { display: none; }
.globalnav[data-menu="open"] .globalnav-list {
display: block;
position: absolute;
top: var(--nav-h);
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.96);
padding: 12px 16px 24px;
border-bottom: 1px solid var(--hairline);
max-height: calc(100vh - var(--nav-h));
overflow-y: auto;
}
.globalnav[data-menu="open"] .globalnav-item { display: block; }
.globalnav[data-menu="open"] .globalnav-trigger,
.globalnav[data-menu="open"] .globalnav-list > .globalnav-item > .globalnav-link {
height: auto;
padding: 12px 0;
font-size: 17px;
font-weight: 600;
width: 100%;
justify-content: space-between;
border-bottom: 1px solid var(--hairline);
}
.globalnav[data-menu="open"] .globalnav-flyout {
position: static;
transform: none;
border: 0;
padding: 8px 0 16px;
background: transparent;
min-width: 0;
}
.globalnav[data-menu="open"] .globalnav-flyout a { font-size: 17px; line-height: 26px; }
.menu-toggle { display: inline-flex; }
.section h2 { font-size: 32px; line-height: 36px; }
.section p.sub { font-size: 19px; line-height: 23px; }
.product-grid { grid-template-columns: 1fr; }
.bag-line { grid-template-columns: 80px 1fr; }
.bag-totals { margin-left: 0; }
.footer .cols { grid-template-columns: 1fr; }
}
@media (min-width: 735px) {
.menu-toggle { display: none; }
}
/* ---------- forms, checkout, account ---------- */
.form-page { max-width: 460px; margin: 0 auto; padding: 60px 22px 80px; }
.form-page h1 {
font-family: var(--font-display);
font-size: 32px;
line-height: 36px;
font-weight: 600;
margin: 0 0 20px;
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.stack small { color: var(--text-secondary); font-size: 12px; }
.stack input[type="text"],
.stack input[type="email"],
.stack input[type="password"],
.checkout input[type="text"],
.checkout input[type="email"] {
font-family: inherit;
font-size: 17px;
padding: 12px 14px;
border: 1px solid var(--hairline);
border-radius: 12px;
background: #fff;
color: var(--text);
}
.stack button {
font-family: inherit;
font-size: 17px;
padding: 12px 16px;
border: 0;
border-radius: 980px;
background: var(--pill);
color: #fff;
cursor: pointer;
}
.stack .choice { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; }
.form-error {
background: #fff3f3;
border: 1px solid #d95c5c;
color: #8c1c1c;
border-radius: 12px;
padding: 12px 14px;
font-size: 14px;
}
.local-inbox {
background: var(--section-bg);
border: 1px dashed var(--hairline);
border-radius: 12px;
padding: 14px 16px;
margin: 0 0 18px;
font-size: 14px;
}
.local-inbox h2 { font-size: 14px; margin: 0 0 6px; }
.local-inbox code { font-size: 18px; letter-spacing: 2px; }
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 10px 0 70px; }
.checkout h2 {
font-family: var(--font-display);
font-size: 24px;
line-height: 28px;
font-weight: 600;
margin: 18px 0 4px;
}
.order-summary {
background: var(--section-bg);
border-radius: 18px;
padding: 22px;
align-self: start;
}
.order-summary h2 { margin-top: 0; }
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-line.grand {
font-size: 19px;
font-weight: 600;
border-top: 1px solid var(--hairline);
margin-top: 8px;
padding-top: 12px;
}
.order-list { list-style: none; margin: 0 0 30px; padding: 0; }
.order-list li { padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.product-card form { margin-top: 8px; }
.product-card form button {
font-family: inherit;
font-size: 12px;
background: none;
border: 0;
color: var(--link);
cursor: pointer;
}
@media (max-width: 833px) {
.checkout { grid-template-columns: 1fr; }
}
/* ---------- product-line chapter nav and content blocks ---------- */
.chapter-nav {
border-bottom: 1px solid var(--hairline);
background: #fff;
overflow-x: auto;
}
.chapter-nav ul {
display: flex;
gap: 34px;
list-style: none;
margin: 0 auto;
padding: 14px 22px;
max-width: 1024px;
justify-content: center;
}
.chapter-nav li { flex: 0 0 auto; }
.chapter-nav a {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
font-size: 12px;
line-height: 16px;
color: var(--text);
text-align: center;
max-width: 96px;
}
.chapter-nav a:hover { text-decoration: none; color: var(--link); }
.chapter-nav img { height: 60px; width: auto; object-fit: contain; }
.line-block { padding: 60px 0; text-align: center; }
.line-block.alt { background: var(--section-bg); }
.line-block h2 {
font-family: var(--font-display);
font-size: 40px;
line-height: 44px;
font-weight: 600;
letter-spacing: -0.4px;
margin: 0 0 10px;
}
.line-block-copy {
font-size: 19px;
line-height: 25px;
max-width: 720px;
margin: 0 auto 18px;
color: var(--text-secondary);
}
.line-block-media {
display: flex;
gap: 18px;
justify-content: center;
flex-wrap: wrap;
padding-top: 26px;
}
.line-block-media img {
max-width: 300px;
width: 100%;
height: auto;
border-radius: 18px;
background: #fff;
}
@media (max-width: 833px) {
.chapter-nav ul { justify-content: flex-start; }
.line-block h2 { font-size: 30px; line-height: 34px; }
}